summaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-18 19:46:06 -0500
committerScott Wood <scottwood@freescale.com>2009-01-23 10:32:52 -0600
commitd4bade8d77aa20e2846fa4accff0e7fa7961a134 (patch)
tree6f8357e802e0d23e701b27ecf4cc240cc0f03696 /common/cmd_nand.c
parent389e6620e2271096df3316917528003627db4021 (diff)
downloadu-boot-imx-d4bade8d77aa20e2846fa4accff0e7fa7961a134.zip
u-boot-imx-d4bade8d77aa20e2846fa4accff0e7fa7961a134.tar.gz
u-boot-imx-d4bade8d77aa20e2846fa4accff0e7fa7961a134.tar.bz2
nand: fixup printf modifiers to match types used
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r--common/cmd_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 3d434e8..aedf8a6 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -160,7 +160,7 @@ out:
if (*size == nand->size)
puts("whole chip\n");
else
- printf("offset 0x%lx, size 0x%x\n", *off, *size);
+ printf("offset 0x%lx, size 0x%zx\n", *off, *size);
return 0;
}
@@ -398,7 +398,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 1;
}
- printf(" %d bytes %s: %s\n", size,
+ printf(" %zu bytes %s: %s\n", size,
read ? "read" : "written", ret ? "ERROR" : "OK");
return ret == 0 ? 0 : 1;