mtd: rawnand: jz4740: Use the proper format specifier to print chipnr
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 19 Jul 2018 07:37:20 +0000 (09:37 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:14:11 +0000 (23:14 +0200)
In jz_nand_detect_bank(), chipnr is a size_t argument. Use %zu instead
of %i when printing it.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/jz4740_nand.c

index a0254461812d859119a5527045fe69579ffb847f..c5dea83b9ea02f2fbb074f90929f9338cb2511a1 100644 (file)
@@ -355,7 +355,7 @@ static int jz_nand_detect_bank(struct platform_device *pdev,
                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;
 
 notfound_id: