1
0
Fork 0
forked from len0rd/rockbox

output debugf() nicely for simulator builds too

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@895 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-06-04 22:03:21 +00:00
parent d4c9173888
commit fb153c5570
2 changed files with 2 additions and 6 deletions

View file

@ -215,13 +215,9 @@ void debug_init(void)
void debugf(char *fmt, ...)
{
#ifdef DEBUG
va_list ap;
va_start( ap, fmt );
vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap );
vfprintf( stderr, fmt, ap );
va_end( ap );
printf( "%s", debugmembuf );
#endif
}
#endif