* [PATCH -next] slabinfo: fix printk formats
@ 2008-08-13 17:52 Randy Dunlap
2008-08-13 19:34 ` Pekka Enberg
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-08-13 17:52 UTC (permalink / raw)
To: lkml; +Cc: sfr, cl, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix slabinfo printk format warnings:
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 4 has type 'long unsigned int'
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 5 has type 'long unsigned int'
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 6 has type 'long unsigned int'
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 7 has type 'long unsigned int'
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 8 has type 'long unsigned int'
linux-next-20080813/Documentation/vm/slabinfo.c:619: warning: format '%7d' expects type 'int', but argument 9 has type 'long unsigned int'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/vm/slabinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20080813.orig/Documentation/vm/slabinfo.c
+++ linux-next-20080813/Documentation/vm/slabinfo.c
@@ -613,7 +613,7 @@ void slabcache(struct slabinfo *s)
s->order_fallback, s->order);
} else
if (show_defragcount)
- printf("%-21s %8ld %7d %7d %7d %7d %7d %7d\n",
+ printf("%-21s %8ld %7lu %7lu %7lu %7lu %7lu %7lu\n",
s->name, s->objects, s->shrink_calls, s->shrink_attempt_defrag,
s->shrink_slab_reclaimed, s->shrink_empty_slab,
s->shrink_slab_skipped, s->shrink_object_reclaim_failed);
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-13 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 17:52 [PATCH -next] slabinfo: fix printk formats Randy Dunlap
2008-08-13 19:34 ` Pekka Enberg
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®