]> err.no Git - linux-2.6/commitdiff
SLUB: Fix format specifier in Documentation/vm/slabinfo.c
authorJesper Juhl <jesper.juhl@gmail.com>
Wed, 8 Aug 2007 23:31:30 +0000 (16:31 -0700)
committerChristoph Lameter <clameter@sgi.com>
Fri, 10 Aug 2007 04:57:16 +0000 (21:57 -0700)
There's a little problem in Documentation/vm/slabinfo.c
The code is using "%d" in a printf() call to print an 'unsigned long'.
This patch corrects it to use "%lu" instead.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Documentation/vm/slabinfo.c

index d4f21ffd14041b5664eea1c36d386b9290d4eb6a..1af7bd5a2183ec83d1b4481191b61973006f2a46 100644 (file)
@@ -396,7 +396,7 @@ void report(struct slabinfo *s)
        if (strcmp(s->name, "*") == 0)
                return;
 
-       printf("\nSlabcache: %-20s  Aliases: %2d Order : %2d Objects: %d\n",
+       printf("\nSlabcache: %-20s  Aliases: %2d Order : %2d Objects: %lu\n",
                s->name, s->aliases, s->order, s->objects);
        if (s->hwcache_align)
                printf("** Hardware cacheline aligned\n");