diff options
author | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-02 15:30:06 +0000 |
---|---|---|
committer | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-02 15:30:06 +0000 |
commit | fade88af2451ad78be19103207f5fdc16ec5d9c3 (patch) | |
tree | 29acd29f3a5c6e2b0725a0f7241f19c1cd2752c4 /firmware | |
parent | 02385cb5b02ecd13ee63fb636a8ed65071407b01 (diff) |
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')
-rw-r--r-- | firmware/logf.c | 7 |
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); |