summaryrefslogtreecommitdiff
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.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)
215 215
216void debugf(char *fmt, ...) 216void debugf(char *fmt, ...)
217{ 217{
218#ifdef DEBUG
219 va_list ap; 218 va_list ap;
220
221 va_start( ap, fmt ); 219 va_start( ap, fmt );
222 vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); 220 vfprintf( stderr, fmt, ap );
223 va_end( ap ); 221 va_end( ap );
224 printf( "%s", debugmembuf );
225#endif
226} 222}
227#endif 223#endif