summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-30 13:39:41 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-30 14:25:09 +1000
commit5b4792d9d29ce27a5e69aedf0fcb65373e8aae31 (patch)
treee5c9bd68d6bb6a72d91074235e40dc4e71c2206b
parent0f21fe7666b1c265d8144ed975140b67e764835e (diff)
downloadsamba-5b4792d9d29ce27a5e69aedf0fcb65373e8aae31.tar.gz
samba-5b4792d9d29ce27a5e69aedf0fcb65373e8aae31.tar.bz2
samba-5b4792d9d29ce27a5e69aedf0fcb65373e8aae31.zip
lib/ccan: Fix format string errors found by -Werror=format in ccan failtest
-rw-r--r--lib/ccan/failtest/failtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ccan/failtest/failtest.c b/lib/ccan/failtest/failtest.c
index 71fcff3ae0..7915a9222d 100644
--- a/lib/ccan/failtest/failtest.c
+++ b/lib/ccan/failtest/failtest.c
@@ -1259,7 +1259,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 -> %zd\n",
is_pread ? "p" : "", file, line, fd, count, (long long)off,
p->u.read.ret);
errno = p->error;
@@ -1361,7 +1361,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 -> %zd\n",
p->u.write.is_pwrite ? "p" : "",
file, line, count, (long long)off, fd, p->u.write.ret);
errno = p->error;