Skip to content

Commit

Permalink
SLUB: Fix format specifier in Documentation/vm/slabinfo.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Christoph Lameter committed Aug 10, 2007
1 parent 1ceef40 commit ac07860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/vm/slabinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ac07860

Please sign in to comment.