提交 c6b2ea37 编写于 作者: H Heinrich Schuchardt 提交者: Tom Rini

cmd: sf: use correct printf code

test->time_ms[] is defined as unsigned. So use %u for printf().
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 82919517
...@@ -413,7 +413,7 @@ static void show_time(struct test_info *test, int stage) ...@@ -413,7 +413,7 @@ static void show_time(struct test_info *test, int stage)
do_div(speed, test->time_ms[stage] * 1024); do_div(speed, test->time_ms[stage] * 1024);
bps = speed * 8; 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], stage_name[stage], test->time_ms[stage],
(int)speed, bps / 1000, bps % 1000); (int)speed, bps / 1000, bps % 1000);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册