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
This commit is contained in:
Jeffrey Goode 2009-11-02 15:30:06 +00:00
parent 02385cb5b0
commit fade88af24
1 changed files with 7 additions and 0 deletions

View File

@ -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);