summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s3c2440
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 23:12:11 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 23:12:11 +0000
commitbc4b5366cd2863904abae103f0e198dd6952e438 (patch)
tree45bf8ec407edb1dfea9a7bb00568283f02291e1f /firmware/target/arm/s3c2440
parent71b2d2811b8cd8747f81a2e69e07aaa72a56b1c2 (diff)
downloadrockbox-bc4b5366cd2863904abae103f0e198dd6952e438.tar.gz
rockbox-bc4b5366cd2863904abae103f0e198dd6952e438.tar.bz2
rockbox-bc4b5366cd2863904abae103f0e198dd6952e438.zip
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
Diffstat (limited to 'firmware/target/arm/s3c2440')
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c
index 4b1e1d9ccc..8cd0260fe4 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c
@@ -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