Commit c6b2ea379ce6867f18897b45beacfea138c53a31

Authored by Heinrich Schuchardt
Committed by Tom Rini
1 parent 82919517fb

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -413,7 +413,7 @@
413 413 do_div(speed, test->time_ms[stage] * 1024);
414 414 bps = speed * 8;
415 415  
416   - printf("%d %s: %d ticks, %d KiB/s %d.%03d Mbps\n", stage,
  416 + printf("%d %s: %u ticks, %d KiB/s %d.%03d Mbps\n", stage,
417 417 stage_name[stage], test->time_ms[stage],
418 418 (int)speed, bps / 1000, bps % 1000);
419 419 }