[ccan] [PATCH] failtest: fix warning [-Wformat]
Tinggong
wangtinggong at gmail.com
Sat Mar 9 02:09:02 EST 2013
hi rusty,
here is a trival path to fix warning [-Wformat].
Thanks.
Tinggong
Signed-off-by: Tinggong <wangtinggong at gmail.com>
---
ccan/failtest/failtest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c
index ed9e1e9..fda2b34 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;
--
1.7.11.7
===================================================
北京福富软件技术股份有限公司福州分公司
移动互联网事业部开发部 王廷功
TEL:18950295762 FAX:0591-83519928
ADDR:福州市铜盘路软件大道89号A区12#楼 ZIP:350003
Email: wangtg at ffcs.cn
===================================================
More information about the ccan
mailing list