1
0
Fork 0
forked from len0rd/rockbox

Added Gary's snprintf() and changed all places to use it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@379 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-02 11:44:15 +00:00
parent a98b20e22a
commit 824a003052
6 changed files with 140 additions and 15 deletions

View file

@ -29,7 +29,7 @@ char debugbuf[200];
static int debug_tx_ready(void)
{
return (SSR1 & SCI_TDRE);
return (SSR1 & SCI_TDRE);
}
static void debug_tx_char(char ch)
@ -180,7 +180,7 @@ void debugf(char *fmt, ...)
va_list ap;
va_start(ap, fmt);
vsprintf(debugmembuf, fmt, ap);
vsnprintf(debugmembuf, sizeof(debugmembuf), fmt, ap);
va_end(ap);
debug(debugmembuf);
}
@ -197,7 +197,7 @@ void debugf(char *fmt, ...)
va_list ap;
va_start( ap, fmt );
vsprintf( debugmembuf, fmt, ap );
vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap );
va_end( ap );
printf( debugmembuf );
}