diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-01-06 12:03:37 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 15:28:44 -0500 |
commit | c6b2ea379ce6867f18897b45beacfea138c53a31 (patch) | |
tree | a17f4eb01567cf0cdc5006767cf958413325951a /cmd | |
parent | 82919517fbda20f616507386919791cb03581d39 (diff) | |
download | u-boot-c6b2ea379ce6867f18897b45beacfea138c53a31.zip u-boot-c6b2ea379ce6867f18897b45beacfea138c53a31.tar.gz u-boot-c6b2ea379ce6867f18897b45beacfea138c53a31.tar.bz2 |
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |