diff options
Diffstat (limited to 'firmware/logf.c')
-rw-r--r-- | firmware/logf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c index f61797b289..fc57bd85bf 100644 --- a/firmware/logf.c +++ b/firmware/logf.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "config.h" | 31 | #include "config.h" |
32 | #include "lcd-remote.h" | 32 | #include "lcd-remote.h" |
33 | #include "logf.h" | 33 | #include "logf.h" |
34 | #include "serial.h" | ||
34 | 35 | ||
35 | /* Only provide all this if asked to */ | 36 | /* Only provide all this if asked to */ |
36 | #ifdef ROCKBOX_HAS_LOGF | 37 | #ifdef ROCKBOX_HAS_LOGF |
@@ -90,6 +91,10 @@ void logf(const char *format, ...) | |||
90 | } | 91 | } |
91 | ptr = logfbuffer[logfindex]; | 92 | ptr = logfbuffer[logfindex]; |
92 | len = vsnprintf(ptr, MAX_LOGF_ENTRY, format, ap); | 93 | len = vsnprintf(ptr, MAX_LOGF_ENTRY, format, ap); |
94 | #ifdef HAVE_SERIAL | ||
95 | serial_tx(ptr); | ||
96 | serial_tx("\r\n"); | ||
97 | #endif | ||
93 | va_end(ap); | 98 | va_end(ap); |
94 | if(len < MAX_LOGF_ENTRY) | 99 | if(len < MAX_LOGF_ENTRY) |
95 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ | 100 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ |