From 5d69a5d178a1fc3874b8d18e5be3e520f6acaca5 Mon Sep 17 00:00:00 2001 From: Vasili Galka Date: Tue, 26 Aug 2014 13:45:48 +0300 Subject: Fix a few printf argument verification warnings The parameters of size_t type shall be formatted using "%zu" and not using "%d". Precision argument for the "%.*s" parameters shall be of int type. Signed-off-by: Vasili Galka --- common/bouncebuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/bouncebuf.c') diff --git a/common/bouncebuf.c b/common/bouncebuf.c index 9eece6d758..054d9e0302 100644 --- a/common/bouncebuf.c +++ b/common/bouncebuf.c @@ -23,7 +23,7 @@ static int addr_aligned(struct bounce_buffer *state) /* Check if length is aligned */ if (state->len != state->len_aligned) { - debug("Unaligned buffer length %d\n", state->len); + debug("Unaligned buffer length %zu\n", state->len); return 0; } -- cgit v1.2.1