summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-10-17 18:02:48 +0000
committerNils Wallménius <nils@rockbox.org>2009-10-17 18:02:48 +0000
commitf34a841b0cc5d1a605375209e1b013b388f741bc (patch)
tree90c780494fa42ffe34e3504d6fe3dc026a91d457 /apps/main.c
parent5ca76ab9c4af0759f1bcf75ce24c47ccd38fc962 (diff)
downloadrockbox-f34a841b0cc5d1a605375209e1b013b388f741bc.zip
rockbox-f34a841b0cc5d1a605375209e1b013b388f741bc.tar.gz
rockbox-f34a841b0cc5d1a605375209e1b013b388f741bc.tar.bz2
rockbox-f34a841b0cc5d1a605375209e1b013b388f741bc.tar.xz
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
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c10
1 files changed, 2 insertions, 8 deletions
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 */