]> Git Repo - linux.git/commitdiff
firmware: fix memmap printk format warnings
authorRandy Dunlap <[email protected]>
Sat, 26 Jul 2008 22:22:28 +0000 (15:22 -0700)
committerLinus Torvalds <[email protected]>
Sun, 27 Jul 2008 03:16:48 +0000 (20:16 -0700)
Fix firmware/memmap printk format warnings:

  drivers/firmware/memmap.c:156: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
  drivers/firmware/memmap.c:161: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'

Signed-off-by: Randy Dunlap <[email protected]>
Cc: Bernhard Walle <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/firmware/memmap.c

index e23399c7f7735ad8677d7f011821cc5d3fa56717..001622eb86f962d28f6b6842981817ddf7f14132 100644 (file)
@@ -153,12 +153,14 @@ int __init firmware_map_add_early(resource_size_t start, resource_size_t end,
 
 static ssize_t start_show(struct firmware_map_entry *entry, char *buf)
 {
-       return snprintf(buf, PAGE_SIZE, "0x%llx\n", entry->start);
+       return snprintf(buf, PAGE_SIZE, "0x%llx\n",
+               (unsigned long long)entry->start);
 }
 
 static ssize_t end_show(struct firmware_map_entry *entry, char *buf)
 {
-       return snprintf(buf, PAGE_SIZE, "0x%llx\n", entry->end);
+       return snprintf(buf, PAGE_SIZE, "0x%llx\n",
+               (unsigned long long)entry->end);
 }
 
 static ssize_t type_show(struct firmware_map_entry *entry, char *buf)
This page took 0.057855 seconds and 4 git commands to generate.