]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ftape: fix printk format warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Sun, 19 Nov 2006 06:19:41 +0000 (22:19 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Mon, 20 Nov 2006 17:42:05 +0000 (09:42 -0800)
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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ftape/zftape/zftape-buffers.c

index da06f138334ecdb58bbd823021cc84c7022c36a0..7ebce2ec78972383ec227d519ec1aa5998a28318 100644 (file)
@@ -85,7 +85,7 @@ int zft_vmalloc_once(void *new, size_t size)
                peak_memory = used_memory;
        }
        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)
 {
@@ -101,7 +101,7 @@ void zft_vfree(void *old, size_t size)
        if (*(void **)old) {
                vfree(*(void **)old);
                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 = NULL;
        }