summaryrefslogtreecommitdiffstats
path: root/firmware/logf.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-01-01 19:54:30 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-01-01 19:54:30 +0000
commitaec45210ea624a071bcda6c0db535e5c37df1375 (patch)
tree33f67b9c6a87d898d93c401ec87084c1113ff79f /firmware/logf.c
parent91ad8f0029fe2b4295a89393d7cdbc4707c46c17 (diff)
downloadrockbox-aec45210ea624a071bcda6c0db535e5c37df1375.tar.gz
rockbox-aec45210ea624a071bcda6c0db535e5c37df1375.tar.bz2
rockbox-aec45210ea624a071bcda6c0db535e5c37df1375.zip
Fix (USB) serial logf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19634 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 4296a7a342..054baa14ea 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -132,12 +132,12 @@ void _logf(const char *format, ...)
len = strlen(buf);
#ifdef HAVE_SERIAL
- serial_tx(ptr);
+ serial_tx(buf);
serial_tx("\r\n");
#endif
#ifdef USB_SERIAL
- usb_serial_send(ptr,len);
- usb_serial_send("\r\n",2);
+ usb_serial_send(buf, len);
+ usb_serial_send("\r\n", 2);
#endif
tlen = 0;