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:
parent
02385cb5b0
commit
fade88af24
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue