diff options
author | Tinggong <wangtinggong@gmail.com> | 2013-03-08 23:09:02 +0800 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-11 15:34:34 +1030 |
commit | 4a850584f588b35635b2625a15749b7c8f1a0445 (patch) | |
tree | 47171d5cecc95df353d87de85556479746a78c0a | |
parent | a1a93f902d4353762de50fd6a666a27a7b0de37b (diff) |
failtest: fix warning [-Wformat]
hi rusty,
here is a trival path to fix warning [-Wformat].
Thanks.
Tinggong
Signed-off-by: Tinggong <wangtinggong@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r-- | ccan/failtest/failtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index ed9e1e98..fda2b344 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -1260,7 +1260,7 @@ static ssize_t failtest_add_read(int fd, void *buf, size_t count, off_t off, set_cleanup(p, cleanup_read, struct read_call); } } - trace("%sread %s:%u fd %i %zu@%llu -> %i\n", + trace("%sread %s:%u fd %i %zu@%llu -> %zi\n", is_pread ? "p" : "", file, line, fd, count, (long long)off, p->u.read.ret); errno = p->error; @@ -1362,7 +1362,7 @@ static ssize_t failtest_add_write(int fd, const void *buf, else p->u.write.ret = write(fd, buf, count); } - trace("%swrite %s:%i %zu@%llu on fd %i -> %i\n", + trace("%swrite %s:%i %zu@%llu on fd %i -> %zi\n", p->u.write.is_pwrite ? "p" : "", file, line, count, (long long)off, fd, p->u.write.ret); errno = p->error; |