[PATCH -mm] MTD: fix plat-ram printk format
Randy Dunlap
randy.dunlap at oracle.com
Thu Apr 26 01:41:34 EDT 2007
From: Randy Dunlap <randy.dunlap at oracle.com>
drivers/mtd/maps/plat-ram.c:172: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
---
drivers/mtd/maps/plat-ram.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.21-rc7-mm1.orig/drivers/mtd/maps/plat-ram.c
+++ linux-2.6.21-rc7-mm1/drivers/mtd/maps/plat-ram.c
@@ -169,7 +169,8 @@ static int platram_probe(struct platform
goto exit_free;
}
- dev_dbg(&pdev->dev, "got platform resource %p (0x%lx)\n", res, res->start);
+ dev_dbg(&pdev->dev, "got platform resource %p (0x%llx)\n", res,
+ (unsigned long long)res->start);
/* setup map parameters */
More information about the linux-mtd
mailing list