nand_util.c: Use '%ld' for length in nand_unlock debug print
Subsystems (2)
PATCH 1/1 nand_util.c: Use '%ld' for length in nand_unlock debug print
length is size_t so needs to be '%ld' not '%d' to avoid warnings.
Cc Scott Wood <[email protected]>
Signed-off-by Tom Rini <[email protected]>
--- drivers/mtd/nand/nand_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/nand_util.c +1 -1
@@ -315,7 +315,7 @@ int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length,int page;struct nand_chip *chip = mtd->priv; -debug ("nand_unlock%s: start: %08llx, length: %d!\n" , +debug ("nand_unlock%s: start: %08llx, length: %ld!\n" , allexcept ?" (allexcept)" :"" , start, length);/* select the NAND device */
Signature · 1 line
1.7.9.5
PATCH 1/1 nand_util.c: Use '%ld' for length in nand_unlock debug print
Quoted 13 lines · Tom Rini
length is
size_tso needs to be '%ld' not '%d' to avoid warnings.Cc Scott Wood <[email protected]>Signed-off-by Tom Rini <[email protected]>--- drivers/mtd/nand/nand_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/nand/nand_util.c +0
-0
drivers/mtd/nand/nand_util.c int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, · line 321
Quoted 8 lines
drivers/mtd/nand/nand_util.c +1
-1@@ -315,7 +315,7 @@ int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length,int page;struct nand_chip *chip = mtd->priv; -debug ("nand_unlock%s: start: %08llx, length: %d!\n" , +debug ("nand_unlock%s: start: %08llx, length: %ld!\n" , allexcept ?" (allexcept)" :"" , start, length);/* select the NAND device */
Bah, that's not the right portable identifier for size_t, redoing..
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131216/88c792ba/attachment.pgp>