aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_onenand.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-07-12 14:36:34 +0200
committerWolfgang Denk <wd@denx.de>2008-07-13 16:55:00 +0200
commit0a5676befb0c590212a53f7627fa5d0d8a84bf34 (patch)
treeea6812919abaf744be8c7b5b904dc78244cbaa4d /common/cmd_onenand.c
parent18c8a28aad49803780bd8d52432ded528e37e701 (diff)
downloadu-boot-0a5676befb0c590212a53f7627fa5d0d8a84bf34.zip
u-boot-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.gz
u-boot-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.bz2
Fix some more printf() format issues.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common/cmd_onenand.c')
-rw-r--r--common/cmd_onenand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c
index aff11d1..ce99a38 100644
--- a/common/cmd_onenand.c
+++ b/common/cmd_onenand.c
@@ -70,14 +70,14 @@ int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
if (!end || end < 0)
end = start;
- printf("Erase block from %d to %d\n", start, end);
+ printf("Erase block from %lu to %lu\n", start, end);
for (block = start; block <= end; block++) {
instr.addr = block << onenand_chip.erase_shift;
instr.len = 1 << onenand_chip.erase_shift;
ret = onenand_erase(&onenand_mtd, &instr);
if (ret) {
- printf("erase failed %d\n", block);
+ printf("erase failed %lu\n", block);
break;
}
}