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/ifp_usb_serial.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/ifp_usb_serial.c')
-rw-r--r-- | firmware/ifp_usb_serial.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/ifp_usb_serial.c b/firmware/ifp_usb_serial.c index 530f2c122b..5392de0d52 100644 --- a/firmware/ifp_usb_serial.c +++ b/firmware/ifp_usb_serial.c | |||
@@ -988,10 +988,7 @@ static void serial_restart_output(int ep) | |||
988 | if (blen) | 988 | if (blen) |
989 | { | 989 | { |
990 | #ifdef LCD_DEBUG | 990 | #ifdef LCD_DEBUG |
991 | char s[20]; | 991 | lcd_putsf(0, 2, "o%03lx/%03x", block - serial_out_fifo.buf, blen); |
992 | snprintf(s, sizeof(s), "o%03lx/%03x", block - serial_out_fifo.buf, | ||
993 | blen); | ||
994 | lcd_puts(0, 2, s); | ||
995 | lcd_update(); | 992 | lcd_update(); |
996 | #endif | 993 | #endif |
997 | usb_send_block(block, blen, serial_free_out_fifo, ep); | 994 | usb_send_block(block, blen, serial_free_out_fifo, ep); |