diff options
| author | William Wilgus <me.theuser@yahoo.com> | 2018-12-09 12:09:40 -0600 |
|---|---|---|
| committer | William Wilgus <me.theuser@yahoo.com> | 2018-12-09 22:54:55 -0600 |
| commit | 62a5ed49cc187120793ea50e0eec4e18c8bc0441 (patch) | |
| tree | a6714de084a80ea4a61f3da6042a743801b19d12 /apps/debug_menu.c | |
| parent | 74701a16a547ab4a68fc9c5a32d939e7a9c91531 (diff) | |
| download | rockbox-62a5ed49cc187120793ea50e0eec4e18c8bc0441.zip rockbox-62a5ed49cc187120793ea50e0eec4e18c8bc0441.tar.gz rockbox-62a5ed49cc187120793ea50e0eec4e18c8bc0441.tar.bz2 rockbox-62a5ed49cc187120793ea50e0eec4e18c8bc0441.tar.xz | |
Fix possible truncation misc.c->output_dyn_value + use Kibytes
output_dyn_value now requires the count for number of units
Binary scale now shows Kibibytes instead of kilobytes (g#1742)
Fixes output for negative values as well
Change-Id: I8aa896860e97d2453fa35069e2dfe1caac60109f
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 0dec3cd..362d3fb 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1326,11 +1326,11 @@ static int disk_callback(int btn, struct gui_synclist *lists) simplelist_addline( "Blocks: 0x%08lx", card->numblocks); output_dyn_value(pbuf, sizeof pbuf, card->speed / 1000, - kbit_units, false); + kbit_units, 3, false); simplelist_addline( "Speed: %s", pbuf); output_dyn_value(pbuf, sizeof pbuf, card->taac, - nsec_units, false); + nsec_units, 3, false); simplelist_addline( "Taac: %s", pbuf); simplelist_addline( |