* [PATCH -next] firmware: fix memmap printk format warnings
@ 2008-07-11 19:58 Randy Dunlap
2008-07-12 22:17 ` Bernhard Walle
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-07-11 19:58 UTC (permalink / raw)
To: lkml; +Cc: bwalle, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
cc: Bernhard Walle <bwalle@suse.de>
Fix firmware/memmap printk format warnings:
linux-next-20080711/drivers/firmware/memmap.c:156: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
linux-next-20080711/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 <randy.dunlap@oracle.com>
---
drivers/firmware/memmap.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- linux-next-20080711.orig/drivers/firmware/memmap.c
+++ linux-next-20080711/drivers/firmware/memmap.c
@@ -153,12 +153,14 @@ int __init firmware_map_add_early(resour
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)
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] firmware: fix memmap printk format warnings
2008-07-11 19:58 [PATCH -next] firmware: fix memmap printk format warnings Randy Dunlap
@ 2008-07-12 22:17 ` Bernhard Walle
0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Walle @ 2008-07-12 22:17 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, akpm
* Randy Dunlap <randy.dunlap@oracle.com> [2008-07-11 12:58]:
>
> From: Randy Dunlap <randy.dunlap@oracle.com>
> cc: Bernhard Walle <bwalle@suse.de>
>
> Fix firmware/memmap printk format warnings:
>
> linux-next-20080711/drivers/firmware/memmap.c:156: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
> linux-next-20080711/drivers/firmware/memmap.c:161: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
Thanks for the patch. I did not include that change in my cleanup sent
to Andrew to not conflict with that patch.
Bernhard
--
Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-12 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-11 19:58 [PATCH -next] firmware: fix memmap printk format warnings Randy Dunlap
2008-07-12 22:17 ` Bernhard Walle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®