summaryrefslogtreecommitdiffstats
path: root/commands/nandtest.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-11-08 22:12:56 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-11 08:52:05 +0100
commitb454f8f33a7bb44f4b7f8d6347f3f85f869a3ea2 (patch)
tree7b9364ac9492f1c145b409a5aa22ac3395f5d03a /commands/nandtest.c
parent8529f1281a172d9bfaf1b37f2a204641f339ade2 (diff)
downloadbarebox-b454f8f33a7bb44f4b7f8d6347f3f85f869a3ea2.tar.gz
commands: nandtest: Fix signed/unsigned arguments for printf
"%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/nandtest.c')
-rw-r--r--commands/nandtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/nandtest.c b/commands/nandtest.c
index f6e8f99..0da5444 100644
--- a/commands/nandtest.c
+++ b/commands/nandtest.c
@@ -163,8 +163,8 @@ static void print_stats(int nr_passes, int length)
for (i = 0; i < MAX_ECC_BITS; i++)
printf("ECC %d bit error(s) : %d\n", i + 1, ecc_stats[i]);
- printf("ECC >%d bit error(s) : %d\n", MAX_ECC_BITS, ecc_stats_over);
- printf("ECC corrections failed : %d\n", ecc_failed_cnt);
+ printf("ECC >%d bit error(s) : %u\n", MAX_ECC_BITS, ecc_stats_over);
+ printf("ECC corrections failed : %u\n", ecc_failed_cnt);
printf("-------------------------\n");
}