diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-10-15 19:10:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-10-15 19:13:17 -0400 |
commit | 9b1a92fe36577ed0e55a1ce3d7c10e5003964933 (patch) | |
tree | b3d00dd0ea0e40d35de851ab4c5a8b846191e513 | |
parent | a2efbf05895ff1c2592a0432b22d8758f5a60973 (diff) | |
download | rockbox-9b1a92fe36.tar.gz rockbox-9b1a92fe36.zip |
Fix up a pile of bad format strings passed into simplelist_addline()
Change-Id: Ic45ea8633a1752b2e01cba2aace55309bcb7480d
-rw-r--r-- | apps/debug_menu.c | 2 | ||||
-rw-r--r-- | apps/gui/skin_engine/skin_engine.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index bd94155882..6cc65c83a4 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2200,7 +2200,7 @@ static int radio_callback(int btn, struct gui_synclist *lists) struct stfm1000_dbg_info nfo; stfm1000_dbg_info(&nfo); simplelist_addline("STFM1000 regs:"); - simplelist_addline("chipid: 0x%x", nfo.chipid); + simplelist_addline("chipid: 0x%lx", nfo.chipid); } #endif /* STFM1000 */ #if (CONFIG_TUNER & TEA5760) diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index c007ed35d4..e11102ffe5 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -352,13 +352,13 @@ bool dbg_skin_engine(void) struct skin_stats *stats = skin_get_stats(i, j); if (stats->buflib_handles) { - simplelist_addline("Skin ID: %d, %d allocations", + simplelist_addline("Skin ID: %d, %zd allocations", i, stats->buflib_handles); - simplelist_addline("\tskin: %d bytes", + simplelist_addline("\tskin: %zd bytes", stats->tree_size); - simplelist_addline("\tImages: %d bytes", + simplelist_addline("\tImages: %zd bytes", stats->images_size); - simplelist_addline("\tTotal: %d bytes", + simplelist_addline("\tTotal: %zd bytes", stats->tree_size + stats->images_size); total += stats->tree_size + stats->images_size; } @@ -375,7 +375,7 @@ bool dbg_skin_engine(void) path += path_prefix_len; simplelist_addline("%s", path); simplelist_addline("\tref_count: %d", ref_count); - simplelist_addline("\tsize: %d", bytes); + simplelist_addline("\tsize: %zd", bytes); total += bytes; } } |