Commit 72b77bb0 authored by Boris Brezillon's avatar Boris Brezillon Committed by Miquel Raynal

mtd: rawnand: jz4740: Use the proper format specifier to print chipnr

In jz_nand_detect_bank(), chipnr is a size_t argument. Use %zu instead
of %i when printing it.
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent b8f0fada
...@@ -355,7 +355,7 @@ static int jz_nand_detect_bank(struct platform_device *pdev, ...@@ -355,7 +355,7 @@ static int jz_nand_detect_bank(struct platform_device *pdev,
mtd->size += chip->chipsize; mtd->size += chip->chipsize;
} }
dev_info(&pdev->dev, "Found chip %i on bank %i\n", chipnr, bank); dev_info(&pdev->dev, "Found chip %zu on bank %i\n", chipnr, bank);
return 0; return 0;
notfound_id: notfound_id:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment