cmd: sf: use correct printf code
test->time_ms[] is defined as unsigned. So use %u for printf(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
82919517fb
commit
c6b2ea379c
2
cmd/sf.c
2
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user