summaryrefslogtreecommitdiffstats
path: root/firmware/ifp_usb_serial.c
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/ifp_usb_serial.c
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/ifp_usb_serial.c')
-rw-r--r--firmware/ifp_usb_serial.c5
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)
if (blen)
{
#ifdef LCD_DEBUG
- char s[20];
- snprintf(s, sizeof(s), "o%03lx/%03x", block - serial_out_fifo.buf,
- blen);
- lcd_puts(0, 2, s);
+ lcd_putsf(0, 2, "o%03lx/%03x", block - serial_out_fifo.buf, blen);
lcd_update();
#endif
usb_send_block(block, blen, serial_free_out_fifo, ep);