diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-04-21 22:15:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-23 09:05:51 +0200 |
commit | 9c63e92baaea8fd35d9892e197a97d3bb39079f4 (patch) | |
tree | 2375a04e74f083894db37d4bf8a2fa78619d46bc /commands | |
parent | 86afb22eae1230a84a7835dd370a0a744c92cb74 (diff) | |
download | barebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.gz barebox-9c63e92baaea8fd35d9892e197a97d3bb39079f4.tar.xz |
treewide: fix signedness mixups in printf format specifiers
This most likely doesn't fix any real bugs, but it's the
right thing to do and reduces the noise level with static
checkers.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/nandtest.c | 2 | ||||
-rw-r--r-- | commands/time.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/nandtest.c b/commands/nandtest.c index c64f2443a8..373ee2c5da 100644 --- a/commands/nandtest.c +++ b/commands/nandtest.c @@ -161,7 +161,7 @@ static void print_stats(int nr_passes, int length) * nr_passes); 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) : %u\n", i + 1, ecc_stats[i]); printf("ECC >%d bit error(s) : %u\n", MAX_ECC_BITS, ecc_stats_over); printf("ECC corrections failed : %u\n", ecc_failed_cnt); diff --git a/commands/time.c b/commands/time.c index 2cc3292d7b..ffd3062339 100644 --- a/commands/time.c +++ b/commands/time.c @@ -37,7 +37,7 @@ static int do_time(int argc, char *argv[]) diff = diff64; - printf("time: %ldms\n", diff); + printf("time: %lums\n", diff); free(buf); |