firmware/ : use lcd_putsf() (only in debug code)

ata-meg-fx: use unsigned line number, so % (modulo) is optimized
tcc7*: use proper printf format and remove casting

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27935 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-08-28 23:12:11 +00:00
parent 71b2d2811b
commit bc4b5366cd
5 changed files with 19 additions and 43 deletions

View file

@ -95,10 +95,8 @@ void copy_read_sectors(unsigned char* buf, int wordcount)
//#define GIGABEAT_DEBUG_ATA
#ifdef GIGABEAT_DEBUG_ATA
static int line = 0;
static char str[256];
snprintf(str, sizeof(str), "ODD DMA to %08x, %d", buf, wordcount);
lcd_puts(10, line, str);
static unsigned line = 0;
lcd_putsf(10, line, "ODD DMA to %08x, %d", buf, wordcount);
line = (line+1) % 32;
lcd_update();
#endif