summaryrefslogtreecommitdiffstats
path: root/firmware/logf.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-10-12 20:22:16 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-10-12 20:22:16 +0000
commit00d218257be50f7f572deeed49f2ba9b2e235834 (patch)
treed3cbe8630aaebbd0ff4c3986b826e1494180f2c5 /firmware/logf.c
parenta60bb9a067ba36866eba176bcc654619dea66bb2 (diff)
downloadrockbox-00d218257be50f7f572deeed49f2ba9b2e235834.tar.gz
rockbox-00d218257be50f7f572deeed49f2ba9b2e235834.tar.bz2
rockbox-00d218257be50f7f572deeed49f2ba9b2e235834.zip
Logf output on the serial port for h100 targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11207 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c5
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 @@
#include "config.h"
#include "lcd-remote.h"
#include "logf.h"
+#include "serial.h"
/* Only provide all this if asked to */
#ifdef ROCKBOX_HAS_LOGF
@@ -90,6 +91,10 @@ void logf(const char *format, ...)
}
ptr = logfbuffer[logfindex];
len = vsnprintf(ptr, MAX_LOGF_ENTRY, format, ap);
+#ifdef HAVE_SERIAL
+ serial_tx(ptr);
+ serial_tx("\r\n");
+#endif
va_end(ap);
if(len < MAX_LOGF_ENTRY)
/* pad with spaces up to the MAX_LOGF_ENTRY byte border */