From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Subject: [PATCH] kmemtrace: fix printk format warnings
Date: Fri, 23 Jan 2009 13:03:37 -0800 [thread overview]
Message-ID: <497A30A9.60200@oracle.com> (raw)
In-Reply-To: <20090123184826.f2c91472.sfr@canb.auug.org.au>
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix kmemtrace printk warnings:
kernel/trace/kmemtrace.c:142: warning: format '%4ld' expects type 'long int', but argument 3 has type 'size_t'
kernel/trace/kmemtrace.c:147: warning: format '%4ld' expects type 'long int', but argument 3 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
---
kernel/trace/kmemtrace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-next-20090123.orig/kernel/trace/kmemtrace.c
+++ linux-next-20090123/kernel/trace/kmemtrace.c
@@ -139,12 +139,12 @@ kmemtrace_print_alloc_compress(struct tr
return TRACE_TYPE_PARTIAL_LINE;
/* Requested */
- ret = trace_seq_printf(s, "%4ld ", entry->bytes_req);
+ ret = trace_seq_printf(s, "%4zd ", entry->bytes_req);
if (!ret)
return TRACE_TYPE_PARTIAL_LINE;
/* Allocated */
- ret = trace_seq_printf(s, "%4ld ", entry->bytes_alloc);
+ ret = trace_seq_printf(s, "%4zd ", entry->bytes_alloc);
if (!ret)
return TRACE_TYPE_PARTIAL_LINE;
next prev parent reply other threads:[~2009-01-23 21:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 7:48 linux-next: Tree for January 23 Stephen Rothwell
2009-01-23 20:34 ` linux-next: Tree for January 23 (kvm) Randy Dunlap
2009-01-28 9:51 ` Andrew Morton
2009-01-28 10:20 ` Alexander Graf
[not found] ` <20090128142616.GA4344@amt.cnet>
2009-01-28 20:44 ` Andrew Morton
2009-02-04 13:55 ` Avi Kivity
2009-01-23 21:03 ` Randy Dunlap [this message]
2009-01-23 21:21 ` linux-next: Tree for January 23 (drivers/watchdog/cpwd.c:411: error: 'inode' undeclared (first use in this function)) Alexey Dobriyan
2009-01-23 21:46 ` linux-next: Tree for January 23 (9pnet_rdma) Richard Holden
2009-01-23 23:00 ` [patch -next] 9pnet_rdma build error Randy Dunlap
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=497A30A9.60200@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=eduard.munteanu@linux360.ro \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.