1
0
Fork 0
forked from len0rd/rockbox

Snapshot of file writing code. Bugs remain. Only short names are supported yet.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-10-20 22:50:58 +00:00
parent 1df1e51a03
commit b7b48fea02
10 changed files with 613 additions and 295 deletions

View file

@ -195,7 +195,9 @@ static void debug(char *msg)
}
#endif /* end of DEBUG section */
#ifdef __GNUC__
void debugf(char *fmt, ...)
#endif
{
#ifdef DEBUG
va_list ap;
@ -223,4 +225,13 @@ void debugf(char *fmt, ...)
vfprintf( stderr, fmt, ap );
va_end( ap );
}
void ldebugf(char* file, int line, char *fmt, ...)
{
va_list ap;
va_start( ap, fmt );
fprintf( stderr, "%s:%d ", file, line );
vfprintf( stderr, fmt, ap );
va_end( ap );
}
#endif