Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac078602 authored by Jesper Juhl's avatar Jesper Juhl Committed by Christoph Lameter
Browse files

SLUB: Fix format specifier in Documentation/vm/slabinfo.c



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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent 1ceef402
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -396,7 +396,7 @@ void report(struct slabinfo *s)
	if (strcmp(s->name, "*") == 0)
	if (strcmp(s->name, "*") == 0)
		return;
		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);
		s->name, s->aliases, s->order, s->objects);
	if (s->hwcache_align)
	if (s->hwcache_align)
		printf("** Hardware cacheline aligned\n");
		printf("** Hardware cacheline aligned\n");