Skip to contentSkip to conversation

kernel/resource.c: fix printk format warnings

PATCH New Américo Wang 1 participant 1 message Oct 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/resource.c: fix printk format warnings

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'

Cc Martin Mares <[email protected]>

---

kernel/resource.c +4 -2
index 414d6fc..d218736 100644
@@ -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 */