From: Randy Dunlap <randy.dunlap@oracle.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: sfr <sfr@canb.auug.org.au>,
cl@linux-foundation.org, akpm <akpm@linux-foundation.org>
Subject: [PATCH -next] slabinfo: fix printk formats
Date: Wed, 13 Aug 2008 10:52:34 -0700 [thread overview]
Message-ID: <20080813105234.86bbc894.randy.dunlap@oracle.com> (raw)
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/
next reply other threads:[~2008-08-13 17:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 17:52 Randy Dunlap [this message]
2008-08-13 19:34 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080813105234.86bbc894.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®