Navigation


Changeset 687:026802543f57 in freeDiameter for libfdproto/log.c


Ignore:
Timestamp:
Jan 19, 2011, 5:08:21 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Prepare for new message log facility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/log.c

    r662 r687  
    5555}
    5656
    57 
    5857/* Log a debug message */
    59 void fd_log_debug ( const char * format, ... )
     58void fd_log_debug_fstr ( FILE * fstr, const char * format, ... )
    6059{
    6160        va_list ap;
     
    6665       
    6766        va_start(ap, format);
    68         vfprintf( stdout, format, ap);
     67        vfprintf( fstr ?: stdout, format, ap);
    6968        va_end(ap);
    70         fflush(stdout);
     69        fflush(fstr ?: stdout);
    7170
    7271        pthread_cleanup_pop(0);
Note: See TracChangeset for help on using the changeset viewer.