1
0
Fork 0
forked from len0rd/rockbox

Changed debug to DEBUGF and panic to panicf.

Also some linking changes.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@383 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-02 14:05:51 +00:00
parent bca0f0f5ea
commit 697dd70ac4
10 changed files with 123 additions and 129 deletions

View file

@ -167,7 +167,7 @@ static char *mem2hex (char *mem, char *buf, int count)
return (buf);
}
void debug(char *msg)
static void debug(char *msg)
{
debugbuf[0] = 'O';
@ -177,29 +177,27 @@ void debug(char *msg)
void debugf(char *fmt, ...)
{
#ifdef DEBUG
va_list ap;
va_start(ap, fmt);
vsnprintf(debugmembuf, sizeof(debugmembuf), fmt, ap);
va_end(ap);
debug(debugmembuf);
#endif
}
#else
void debug( const char *message )
{
printf( message );
}
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
}
#endif