From: Randy Dunlap Date: Sat, 12 May 2012 01:33:31 +0000 (-0700) Subject: watchdog: ie6xx_wdt.c: fix printk format warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=744f6f4d3db2e9f153c9381b169aaee5c6ad4187;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git watchdog: ie6xx_wdt.c: fix printk format warning Fix printk format warning; use cast to u64 since resource_size_t can be either u32 or u64. drivers/watchdog/ie6xx_wdt.c:261:4: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t' Signed-off-by: Randy Dunlap Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/ie6xx_wdt.c b/drivers/watchdog/ie6xx_wdt.c index db21ce4a2c42..790993efce28 100644 --- a/drivers/watchdog/ie6xx_wdt.c +++ b/drivers/watchdog/ie6xx_wdt.c @@ -257,8 +257,8 @@ static int __devinit ie6xx_wdt_probe(struct platform_device *pdev) return -ENODEV; if (!request_region(res->start, resource_size(res), pdev->name)) { - dev_err(&pdev->dev, "Watchdog region 0x%x already in use!\n", - res->start); + dev_err(&pdev->dev, "Watchdog region 0x%llx already in use!\n", + (u64)res->start); return -EBUSY; }