cmd: sf: use correct printf code
PATCH 1/1 cmd: sf: use correct printf code
test->time_ms[] is defined as unsigned. So use %u for printf().
Signed-off-by Heinrich Schuchardt <[email protected]>
--- cmd/sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/sf.c +1 -1
@@ -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 ); }
Signature · 1 line
2.20.1
PATCH 1/1 cmd: sf: use correct printf code
Quoted 7 lines · Heinrich Schuchardt
test->time_ms[] is defined as unsigned. So use %u for
printf().Signed-off-by Heinrich Schuchardt <[email protected]>--- cmd/sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 cmd: sf: use correct printf code
In reply to Heinrich SchuchardtQuoted 4 lines · Heinrich Schuchardt
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]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190115/c49a49b4/attachment.sig>