Commit f0c69c4e authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] ftape: fix printk format warnings

Fix printk format warnings:
drivers/char/ftape/zftape/zftape-buffers.c:87: warning: format '%d' expects type
'int', but argument 3 has type 'size_t'
drivers/char/ftape/zftape/zftape-buffers.c:104: warning: format '%d' expects type
 'int', but argument 3 has type 'size_t'
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8243229f
...@@ -85,7 +85,7 @@ int zft_vmalloc_once(void *new, size_t size) ...@@ -85,7 +85,7 @@ int zft_vmalloc_once(void *new, size_t size)
peak_memory = used_memory; peak_memory = used_memory;
} }
TRACE_ABORT(0, ft_t_noise, TRACE_ABORT(0, ft_t_noise,
"allocated buffer @ %p, %d bytes", *(void **)new, size); "allocated buffer @ %p, %zd bytes", *(void **)new, size);
} }
int zft_vmalloc_always(void *new, size_t size) int zft_vmalloc_always(void *new, size_t size)
{ {
...@@ -101,7 +101,7 @@ void zft_vfree(void *old, size_t size) ...@@ -101,7 +101,7 @@ void zft_vfree(void *old, size_t size)
if (*(void **)old) { if (*(void **)old) {
vfree(*(void **)old); vfree(*(void **)old);
used_memory -= size; used_memory -= size;
TRACE(ft_t_noise, "released buffer @ %p, %d bytes", TRACE(ft_t_noise, "released buffer @ %p, %zd bytes",
*(void **)old, size); *(void **)old, size);
*(void **)old = NULL; *(void **)old = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment