Commit 9dc087680508dc5bffda6c72ff9bf57fbee843a2

Authored by Perry Werneck
1 parent b17c9e88
Exists in master and in 2 other branches develop, macos

Fixing trace file.

Showing 1 changed file with 1 additions and 14 deletions   Show diff stats
src/core/trace_ds.c
@@ -84,21 +84,8 @@ static void write_trace(const H3270 *session, const char *fmt, va_list args) { @@ -84,21 +84,8 @@ static void write_trace(const H3270 *session, const char *fmt, va_list args) {
84 FILE *f = fopen(session->trace.file, "a"); 84 FILE *f = fopen(session->trace.file, "a");
85 85
86 if(f) { 86 if(f) {
87 -  
88 - time_t ltime = time(0);  
89 -  
90 - char timestamp[80];  
91 -#ifdef HAVE_LOCALTIME_R  
92 - struct tm tm;  
93 - strftime(timestamp, 79, "%x %X", localtime_r(&ltime,&tm));  
94 -#else  
95 - strftime(timestamp, 79, "%x %X", localtime(&ltime));  
96 -#endif // HAVE_LOCALTIME_R  
97 -  
98 - fprintf(f,"%s %s\n",timestamp,message);  
99 - 87 + fprintf(f,"%s",message);
100 fclose(f); 88 fclose(f);
101 -  
102 } 89 }
103 90
104 } 91 }