summaryrefslogtreecommitdiffstats
path: root/firmware/debug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-06 11:25:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-06 11:25:44 +0000
commitc84439aec3f08c4de8f4adc45e5f6d709d496b5e (patch)
tree18a51d7c4d44a446460382f0f8481010ef27937e /firmware/debug.c
parent00f090ff1cab0247129f75ba28e4b4a3118505d5 (diff)
downloadrockbox-c84439aec3f08c4de8f4adc45e5f6d709d496b5e.tar.gz
rockbox-c84439aec3f08c4de8f4adc45e5f6d709d496b5e.tar.bz2
rockbox-c84439aec3f08c4de8f4adc45e5f6d709d496b5e.zip
make debugf() do properly when SIMULATOR is defined, ignore the CRT_DISPLAY
and use the symbol we'll always have defined when running on host git-svn-id: svn://svn.rockbox.org/rockbox/trunk@474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.c')
-rw-r--r--firmware/debug.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/debug.c b/firmware/debug.c
index ae0fbe72c6..42b04ba605 100644
--- a/firmware/debug.c
+++ b/firmware/debug.c
@@ -25,7 +25,7 @@
char debugmembuf[100];
char debugbuf[200];
-#ifndef CRT_DISPLAY /* allow non archos platforms to display output */
+#ifndef SIMULATOR /* allow non archos platforms to display output */
static int debug_tx_ready(void)
{
@@ -187,17 +187,15 @@ void debugf(char *fmt, ...)
#endif
}
-#else
+#else /* SIMULATOR code coming up */
void debugf(char *fmt, ...)
{
-#ifdef DEBUG
va_list ap;
va_start( ap, fmt );
vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap );
va_end( ap );
- printf( debugmembuf );
-#endif
+ printf( "%s", debugmembuf );
}
#endif