summaryrefslogtreecommitdiffstats
path: root/firmware/debug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-04 22:03:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-04 22:03:21 +0000
commitfb153c5570dfe197913239fce5677df7f45edeac (patch)
tree60282707b193abf4a5830c39f43c7288ff5729ff /firmware/debug.c
parentd4c9173888e86582681bcb45a0fa8e397e83dbc8 (diff)
downloadrockbox-fb153c5570dfe197913239fce5677df7f45edeac.tar.gz
rockbox-fb153c5570dfe197913239fce5677df7f45edeac.tar.bz2
rockbox-fb153c5570dfe197913239fce5677df7f45edeac.zip
output debugf() nicely for simulator builds too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@895 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.c')
-rw-r--r--firmware/debug.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/debug.c b/firmware/debug.c
index 21583cd4be..00c37cc84c 100644
--- a/firmware/debug.c
+++ b/firmware/debug.c
@@ -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