Changeset 945:284608b307ee in freeDiameter for libfdproto
- Timestamp:
- Feb 12, 2013, 7:56:53 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/log.c
r941 r945 89 89 static void fd_internal_logger( int loglevel, const char *format, va_list ap ) 90 90 { 91 char buf[25]; 91 92 FILE *fstr = fd_g_debug_fstr ?: stdout; 92 93 93 94 /* logging has been decided by macros outside already */ 94 vfprintf( fd_g_debug_fstr, format, ap); 95 fprintf(fd_g_debug_fstr, "\n"); 95 96 /* add timestamp */ 97 fprintf(fd_g_debug_fstr, "%s\t", fd_log_time(NULL, buf, sizeof(buf))); 98 vfprintf(fd_g_debug_fstr, format, ap); 99 if (format && (format[strlen(format)-1] != '\n')) { 100 fprintf(fd_g_debug_fstr, "\n"); 101 } 96 102 fflush(fd_g_debug_fstr); 97 103 }
Note: See TracChangeset
for help on using the changeset viewer.