MTD: fix plat-ram printk format
PATCH 1/1 MTD: fix plat-ram printk format
From: Randy Dunlap <[email protected]>
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 <[email protected]>
--- drivers/mtd/maps/plat-ram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/maps/plat-ram.c +2 -1
@@ -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 */
David Woodhouse
AppliedQuoted 5 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
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 <[email protected]>
Applied; thanks.
Signature · 1 line
dwmw2