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
This commit is contained in:
parent
00f090ff1c
commit
c84439aec3
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue