From b454f8f33a7bb44f4b7f8d6347f3f85f869a3ea2 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Fri, 8 Nov 2013 22:12:56 +0400 Subject: commands: nandtest: Fix signed/unsigned arguments for printf "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan Signed-off-by: Sascha Hauer --- commands/nandtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/nandtest.c') diff --git a/commands/nandtest.c b/commands/nandtest.c index f6e8f99892..0da5444c02 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"); } -- cgit v1.2.3