From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Martin Mares <mj@ucw.cz>, Andrew Morton <akpm@osdl.org>
Subject: [Patch] kernel/resource.c: fix printk format warnings
Date: Thu, 16 Oct 2008 16:33:14 +0100 [thread overview]
Message-ID: <20081016153314.GE13374@hack.voiplan.pt> (raw)
Fixed the belowing warning:
/home/wangcong/Projects/linux-2.6/kernel/resource.c: In function
'__reserve_region_with_split':
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 3
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 4
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 6
has type 'resource_size_t'
/home/wangcong/Projects/linux-2.6/kernel/resource.c:554: warning:
format '%llx' expects type 'long long unsigned int', but argument 7
has type 'resource_size_t'
Sigend-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Martin Mares <mj@ucw.cz>
---
diff --git a/kernel/resource.c b/kernel/resource.c
index 414d6fc..d218736 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -550,8 +550,10 @@ static void __init __reserve_region_with_split(struct resource *root,
if (!res) {
printk(KERN_DEBUG " __reserve_region_with_split: (%s) [%llx, %llx], res: (%s) [%llx, %llx]\n",
- conflict->name, conflict->start, conflict->end,
- name, start, end);
+ conflict->name, (unsigned long long)conflict->start,
+ (unsigned long long)conflict->end,
+ name, (unsigned long long)start,
+ (unsigned long long)end);
/* failed, split and try again */
reply other threads:[~2008-10-16 15:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20081016153314.GE13374@hack.voiplan.pt \
--to=xiyou.wangcong@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mj@ucw.cz \
/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