summaryrefslogtreecommitdiffstats
path: root/firmware/logf.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-11-02 15:30:06 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-11-02 15:30:06 +0000
commitfade88af2451ad78be19103207f5fdc16ec5d9c3 (patch)
tree29acd29f3a5c6e2b0725a0f7241f19c1cd2752c4 /firmware/logf.c
parent02385cb5b02ecd13ee63fb636a8ed65071407b01 (diff)
downloadrockbox-fade88af2451ad78be19103207f5fdc16ec5d9c3.tar.gz
rockbox-fade88af2451ad78be19103207f5fdc16ec5d9c3.tar.bz2
rockbox-fade88af2451ad78be19103207f5fdc16ec5d9c3.zip
Echoes logf output to the sim console when logf build is enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23485 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 8817d4df45..76b017c092 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -207,6 +207,13 @@ void _logf(const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
+
+#ifdef SIMULATOR
+ char buf[1024];
+ vsnprintf(buf, sizeof buf, fmt, ap);
+ DEBUGF("%s\n", buf);
+#endif
+
vfnprintf(logf_push, NULL, fmt, ap);
va_end(ap);