Skip to contentSkip to conversation

Fix format specifier in Documentation/vm/slabinfo.c

PATCH In review Jesper Juhl 2 participants 2 messages Aug 8, 2007 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix format specifier in Documentation/vm/slabinfo.c

Hi,

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.

---

 Documentation/vm/slabinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/vm/slabinfo.c +1 -1
index d4f21ff..1af7bd5 100644
@@ -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");