summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2016-08-03 20:25:59 +0200
committerMichael Giacomelli <giac2000@hotmail.com>2016-08-03 20:26:54 +0200
commit838780109e9321511755e74a2bc7803b169bf389 (patch)
tree6c00d9e0dae52d8e5182bad937cd3c84e2d120a7
parentef572fec523c3064cbec8df3ef7610a2a9b5df54 (diff)
downloadrockbox-838780109e9321511755e74a2bc7803b169bf389.tar.gz
rockbox-838780109e9321511755e74a2bc7803b169bf389.tar.bz2
rockbox-838780109e9321511755e74a2bc7803b169bf389.zip
test_mem: print clock speed in MHz so it fits on smaller screens.
Change-Id: I81383c115bd9abac44ffc2ecdd8807855c80cf0e
-rw-r--r--apps/plugins/test_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c
index 7a97f518cc..7ff5735647 100644
--- a/apps/plugins/test_mem.c
+++ b/apps/plugins/test_mem.c
@@ -210,7 +210,7 @@ enum plugin_status plugin_start(const void* parameter)
rb->screens[0]->clear_display();
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
TEST_MEM_PRINTF("%s", boost?"boosted":"unboosted");
- TEST_MEM_PRINTF("clock: %d Hz", *rb->cpu_frequency);
+ TEST_MEM_PRINTF("clock: %3d.%d MHz", (*rb->cpu_frequency)/1000000, (*rb->cpu_frequency)%1000000);
#endif
TEST_MEM_PRINTF("loop#: %d", ++count);