Changeset 736 for branches/samba-3.5.x/source3/lib
- Timestamp:
- Nov 12, 2012, 5:38:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/lib/debug.c
r414 r736 658 658 fname = SMB_STRDUP(logfname); 659 659 if (!fname) { 660 TALLOC_FREE(logfname); 660 661 return false; 661 662 } 662 663 } 664 TALLOC_FREE(logfname); 663 665 } 664 666 … … 1029 1031 if( lp_timestamp_logs() || lp_debug_prefix_timestamp() || !(lp_loaded()) ) { 1030 1032 char header_str[200]; 1033 char *curtime = current_timestring(talloc_tos(), 1034 lp_debug_hires_timestamp()); 1031 1035 1032 1036 header_str[0] = '\0'; … … 1051 1055 default_classname_table[cls]); 1052 1056 } 1053 1057 1054 1058 /* Print it all out at once to prevent split syslog output. */ 1055 1059 if( lp_debug_prefix_timestamp() ) { 1056 1060 (void)Debug1( "[%s, %2d%s] ", 1057 current_timestring(talloc_tos(), 1058 lp_debug_hires_timestamp()), 1061 curtime, 1059 1062 level, header_str); 1060 1063 } else { 1061 1064 (void)Debug1( "[%s, %2d%s] %s(%s)\n", 1062 current_timestring(talloc_tos(), 1063 lp_debug_hires_timestamp()), 1065 curtime, 1064 1066 level, header_str, location, func ); 1065 1067 } 1068 TALLOC_FREE(curtime); 1066 1069 } 1067 1070
Note:
See TracChangeset
for help on using the changeset viewer.