[MTD] [MAPS] ichxrom warning fix
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Feb 18 11:59:03 EST 2007
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3a38d3af92c423687fa3c916ad3e1288980024e3
Commit: 3a38d3af92c423687fa3c916ad3e1288980024e3
Parent: 1a6284cb6f44b2484505ee7567831316a90bc09f
Author: Andrew Morton <akpm at linux-foundation.org>
AuthorDate: Sat Feb 17 16:02:09 2007 -0800
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Feb 18 16:42:51 2007 +0000
[MTD] [MAPS] ichxrom warning fix
drivers/mtd/maps/ichxrom.c: In function 'ichxrom_init_one':
drivers/mtd/maps/ichxrom.c:231: warning: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
drivers/mtd/maps/ichxrom.c:231: warning: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/maps/ichxrom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/ichxrom.c b/drivers/mtd/maps/ichxrom.c
index 2bb3e63..2c884c4 100644
--- a/drivers/mtd/maps/ichxrom.c
+++ b/drivers/mtd/maps/ichxrom.c
@@ -227,8 +227,8 @@ static int __devinit ichxrom_init_one (struct pci_dev *pdev,
(((unsigned long)(window->virt)) + offset);
map->map.size = 0xffffffffUL - map_top + 1UL;
/* Set the name of the map to the address I am trying */
- sprintf(map->map_name, "%s @%08lx",
- MOD_NAME, map->map.phys);
+ sprintf(map->map_name, "%s @%08Lx",
+ MOD_NAME, (unsigned long long)map->map.phys);
/* Firmware hubs only use vpp when being programmed
* in a factory setting. So in-place programming
More information about the linux-mtd-cvs
mailing list