Skip to content

Commit

Permalink
mtd: rawnand: jz4740: Use the proper format specifier to print chipnr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boris Brezillon authored and Miquel Raynal committed Jul 19, 2018
1 parent b8f0fad commit 72b77bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/jz4740_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 72b77bb

Please sign in to comment.