Skip to content

Commit

Permalink
watchdog: ie6xx_wdt.c: fix printk format warning
Browse files Browse the repository at this point in the history
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 <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Randy Dunlap authored and Wim Van Sebroeck committed May 23, 2012
1 parent 101ce87 commit 744f6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/watchdog/ie6xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 744f6f4

Please sign in to comment.