projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8291951
)
cmd: sf: use correct printf code
author
Heinrich Schuchardt
<
[email protected]
>
Sun, 6 Jan 2019 11:03:37 +0000
(12:03 +0100)
committer
Tom Rini
<
[email protected]
>
Tue, 15 Jan 2019 20:28:44 +0000
(15:28 -0500)
test->time_ms[] is defined as unsigned. So use %u for printf().
Signed-off-by: Heinrich Schuchardt <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
cmd/sf.c
patch
|
blob
|
history
diff --git
a/cmd/sf.c
b/cmd/sf.c
index 84bb0575f233892e22f8cb9162cbde2cc5a22f8e..738ef0e46dc14fde1ae1550b0873a2a818b7abb6 100644
(file)
--- 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);
}