myfprintf: we should be near -ke speeds on most desktops
git-svn-id: https://svn.musicpd.org/mpd/trunk@3970 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
171e1e9d72
commit
e2e7d113ad
@ -67,12 +67,10 @@ void myfprintfStdLogMode(FILE * out, FILE * err) {
|
||||
}
|
||||
|
||||
void myfprintf(FILE * fp, char * format, ... ) {
|
||||
char buffer[BUFFER_LENGTH+1];
|
||||
static char buffer[BUFFER_LENGTH+1];
|
||||
va_list arglist;
|
||||
int fd = fileno(fp);
|
||||
|
||||
memset(buffer,0,BUFFER_LENGTH+1);
|
||||
|
||||
va_start(arglist,format);
|
||||
if(fd==1 || fd==2) {
|
||||
if(myfprintf_stdLogMode) {
|
||||
|
Loading…
Reference in New Issue
Block a user