]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
nand_util.c: Use '%zd' for length in nand_unlock debug print
authorTom Rini <trini@ti.com>
Mon, 16 Dec 2013 14:59:34 +0000 (09:59 -0500)
committerScott Wood <scottwood@freescale.com>
Tue, 17 Dec 2013 23:44:36 +0000 (17:44 -0600)
length is size_t so needs to be '%zd' not '%d' to avoid warnings.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
drivers/mtd/nand/nand_util.c

index eeaa7e8a488b0e90e91cb0846013975162092776..b292826034f9f3964ae4278ed77314b953bcb761 100644 (file)
@@ -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 */