* [PATCH] Fix format specifier in Documentation/vm/slabinfo.c
@ 2007-08-08 21:12 Jesper Juhl
2007-08-08 23:32 ` Christoph Lameter
0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2007-08-08 21:12 UTC (permalink / raw)
To: Christoph Lameter; +Cc: Linux Kernel Mailing List
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.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
Documentation/vm/slabinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/vm/slabinfo.c b/Documentation/vm/slabinfo.c
index d4f21ff..1af7bd5 100644
--- a/Documentation/vm/slabinfo.c
+++ b/Documentation/vm/slabinfo.c
@@ -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");
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix format specifier in Documentation/vm/slabinfo.c
2007-08-08 21:12 [PATCH] Fix format specifier in Documentation/vm/slabinfo.c Jesper Juhl
@ 2007-08-08 23:32 ` Christoph Lameter
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2007-08-08 23:32 UTC (permalink / raw)
To: Jesper Juhl; +Cc: Linux Kernel Mailing List
Thanks. Queued up.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-08 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 21:12 [PATCH] Fix format specifier in Documentation/vm/slabinfo.c Jesper Juhl
2007-08-08 23:32 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®