Skip to content

Commit

Permalink
mtd: docg4: fix printk() warnings
Browse files Browse the repository at this point in the history
Gcc complains here:
drivers/mtd/nand/docg4.c: In function ‘probe_docg4’:
drivers/mtd/nand/docg4.c:1277:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘resource_size_t’ [-Wformat]
drivers/mtd/nand/docg4.c:1277:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘resource_size_t’ [-Wformat]

We have a standard way of printing these using a format string
extension.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
Dan Carpenter authored and David Woodhouse committed Mar 26, 2012
1 parent 5289966 commit 2c4ae27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mtd/nand/docg4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,9 +1270,7 @@ static int __init probe_docg4(struct platform_device *pdev)

virtadr = ioremap(r->start, resource_size(r));
if (!virtadr) {
dev_err(dev, "Diskonchip ioremap failed: "
"0x%x bytes at 0x%x\n",
resource_size(r), r->start);
dev_err(dev, "Diskonchip ioremap failed: %pR\n", r);
return -EIO;
}

Expand Down

0 comments on commit 2c4ae27

Please sign in to comment.