From f34a841b0cc5d1a605375209e1b013b388f741bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 17 Oct 2009 18:02:48 +0000 Subject: Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23233 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index ca0cded..3c93b4f 100644 --- a/apps/main.c +++ b/apps/main.c @@ -242,9 +242,6 @@ static void init_tagcache(void) while (!tagcache_is_initialized()) { -#ifdef HAVE_LCD_CHARCELLS - char buf[32]; -#endif int ret = tagcache_get_commit_step(); if (ret > 0) @@ -277,9 +274,8 @@ static void init_tagcache(void) } #else lcd_double_height(false); - snprintf(buf, sizeof(buf), " DB [%d/%d]", ret, + lcd_putsf(0, 1, " DB [%d/%d]", ret, tagcache_get_max_commit_step()); - lcd_puts(0, 1, buf); lcd_update(); #endif clear = true; @@ -464,10 +460,8 @@ static void init(void) if(rc) { #ifdef HAVE_LCD_BITMAP - char str[32]; lcd_clear_display(); - snprintf(str, 31, "ATA error: %d", rc); - lcd_puts(0, 1, str); + lcd_putsf(0, 1, "ATA error: %d", rc); lcd_puts(0, 3, "Press ON to debug"); lcd_update(); while(!(button_get(true) & BUTTON_REL)); /*DO NOT CHANGE TO ACTION SYSTEM */ -- cgit v1.1