diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:12:11 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:12:11 +0000 |
commit | bc4b5366cd2863904abae103f0e198dd6952e438 (patch) | |
tree | 45bf8ec407edb1dfea9a7bb00568283f02291e1f /firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c | |
parent | 71b2d2811b8cd8747f81a2e69e07aaa72a56b1c2 (diff) | |
download | rockbox-bc4b5366cd2863904abae103f0e198dd6952e438.tar.gz 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/gigabeat-fx/ata-meg-fx.c')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/ata-meg-fx.c | 6 |
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) | |||
95 | 95 | ||
96 | //#define GIGABEAT_DEBUG_ATA | 96 | //#define GIGABEAT_DEBUG_ATA |
97 | #ifdef GIGABEAT_DEBUG_ATA | 97 | #ifdef GIGABEAT_DEBUG_ATA |
98 | static int line = 0; | 98 | static unsigned line = 0; |
99 | static char str[256]; | 99 | lcd_putsf(10, line, "ODD DMA to %08x, %d", buf, wordcount); |
100 | snprintf(str, sizeof(str), "ODD DMA to %08x, %d", buf, wordcount); | ||
101 | lcd_puts(10, line, str); | ||
102 | line = (line+1) % 32; | 100 | line = (line+1) % 32; |
103 | lcd_update(); | 101 | lcd_update(); |
104 | #endif | 102 | #endif |