Changeset 687:026802543f57 in freeDiameter for libfdproto/log.c
- Timestamp:
- Jan 19, 2011, 5:08:21 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/log.c
r662 r687 55 55 } 56 56 57 58 57 /* Log a debug message */ 59 void fd_log_debug (const char * format, ... )58 void fd_log_debug_fstr ( FILE * fstr, const char * format, ... ) 60 59 { 61 60 va_list ap; … … 66 65 67 66 va_start(ap, format); 68 vfprintf( stdout, format, ap);67 vfprintf( fstr ?: stdout, format, ap); 69 68 va_end(ap); 70 fflush( stdout);69 fflush(fstr ?: stdout); 71 70 72 71 pthread_cleanup_pop(0);
Note: See TracChangeset
for help on using the changeset viewer.