Commit c1eb1a36 authored by mifi's avatar mifi
Browse files

- added patch to remove count and time information from log_printf

in case of debug_level is not set to LOG_DEBUG

git-svn-id: svn:// b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 34424b4b
......@@ -69,7 +69,17 @@ void log_printf(enum log_levels level, const char *file, int line, const char *f
if (f != NULL)
file = f + 1;
if (debug_level >= LOG_DEBUG)
/* print with count and time information */
fprintf(log_output, "%s %d %ld %s:%d %s(): %s\n", log_strings[level+1], count, time(NULL), file, line, function, buffer);
/* do not print count and time */
fprintf(log_output, "%s %s:%d %s(): %s\n", log_strings[level+1], file, line, function, buffer);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment