diff options
Diffstat (limited to 'firmware/logf.c')
-rw-r--r-- | firmware/logf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c index 2056db5cc4..da05a0a0c7 100644 --- a/firmware/logf.c +++ b/firmware/logf.c | |||
@@ -32,6 +32,11 @@ | |||
32 | #include "logf.h" | 32 | #include "logf.h" |
33 | #include "serial.h" | 33 | #include "serial.h" |
34 | 34 | ||
35 | #ifdef HAVE_USBSTACK | ||
36 | #include "usb_core.h" | ||
37 | #include "usbstack/usb_serial.h" | ||
38 | #endif | ||
39 | |||
35 | /* Only provide all this if asked to */ | 40 | /* Only provide all this if asked to */ |
36 | #ifdef ROCKBOX_HAS_LOGF | 41 | #ifdef ROCKBOX_HAS_LOGF |
37 | 42 | ||
@@ -107,6 +112,11 @@ void _logf(const char *format, ...) | |||
107 | serial_tx(ptr); | 112 | serial_tx(ptr); |
108 | serial_tx("\r\n"); | 113 | serial_tx("\r\n"); |
109 | #endif | 114 | #endif |
115 | #ifdef USB_SERIAL | ||
116 | usb_serial_send(ptr,len); | ||
117 | usb_serial_send("\r\n",2); | ||
118 | #endif | ||
119 | |||
110 | va_end(ap); | 120 | va_end(ap); |
111 | if(len < MAX_LOGF_ENTRY) | 121 | if(len < MAX_LOGF_ENTRY) |
112 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ | 122 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ |