From: Heinrich Schuchardt Date: Sun, 6 Jan 2019 11:03:37 +0000 (+0100) Subject: cmd: sf: use correct printf code X-Git-Tag: baikal/mips/sdk5.9~1169^2~26 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=fa3ec6434fa9458c2d5ffd0ede66c6f069534ec9;p=uboot.git cmd: sf: use correct printf code test->time_ms[] is defined as unsigned. So use %u for printf(). Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- diff --git a/cmd/sf.c b/cmd/sf.c index 84bb0575f2..738ef0e46d 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -413,7 +413,7 @@ static void show_time(struct test_info *test, int stage) do_div(speed, test->time_ms[stage] * 1024); bps = speed * 8; - printf("%d %s: %d ticks, %d KiB/s %d.%03d Mbps\n", stage, + printf("%d %s: %u ticks, %d KiB/s %d.%03d Mbps\n", stage, stage_name[stage], test->time_ms[stage], (int)speed, bps / 1000, bps % 1000); }