nand_util.c: Use '%zd' for length in nand_unlock debug print
Subsystems (2)
PATCH v2 1/1 nand_util.c: Use '%zd' for length in nand_unlock debug print
length is size_t so needs to be '%zd' not '%d' to avoid warnings.
---
Changes in v2:
- Use %zd, the correct format, rather than %ld, a differntly incorrect one.
--- 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: %zd!\n" , allexcept ?" (allexcept)" :"" , start, length);/* select the NAND device */
Signature · 1 line
1.7.9.5
PATCH v2 1/1 nand_util.c: Use '%zd' for length in nand_unlock debug print
Quoted 18 lines · Tom Rini
length is
size_tso needs to be '%zd' not '%d' to avoid warnings.Cc Scott Wood <[email protected]>Signed-off-by Tom Rini <[email protected]>---
Changes in v2:
- Use %zd, the correct format, rather than %ld, a differntly incorrect one.--- 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: %zd!\n" , allexcept ?" (allexcept)" :"" , start, length);/* select the NAND device */
Though length should really be a loff_t instead.
-Scott
PATCH v2 1/1 nand_util.c: Use '%zd' for length in nand_unlock debug print
In reply to Tom RiniQuoted 6 lines · Tom Rini
length is
size_tso needs to be '%zd' not '%d' to avoid warnings.Cc Scott Wood <[email protected]>Signed-off-by Tom Rini <[email protected]>Acked-by Scott Wood <[email protected]>
Quoted 7 lines
---
Changes in v2:
- Use %zd, the correct format, rather than %ld, a differntly incorrect one.--- drivers/mtd/nand/nand_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-nand-flash.git
-Scott