LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [Patch] kernel/resource.c: fix printk format warnings
@ 2008-10-16 15:33 Américo Wang
  0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2008-10-16 15:33 UTC (permalink / raw)
  To: LKML; +Cc: Martin Mares, Andrew Morton


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 */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-16 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-16 15:33 [Patch] kernel/resource.c: fix printk format warnings Américo Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).