forked from osmocom/wireshark
wslog: Change log format to display everything
Revert from alternating between function name and file name, show both instead.
This commit is contained in:
parent
95396973e7
commit
41fd46310f
|
@ -364,21 +364,23 @@ static void log_write_do_work(FILE *fp, gboolean use_color, const char *timestam
|
|||
else
|
||||
fprintf(fp, " [%s]", level_str);
|
||||
|
||||
if (use_color)
|
||||
fputs("\033[34m", fp); /* color on */
|
||||
|
||||
if (func)
|
||||
fprintf(fp, " %s()" , func);
|
||||
else if (file && line >= 0)
|
||||
fprintf(fp, " (%d)%s", line, file);
|
||||
if (file && line >= 0)
|
||||
fprintf(fp, " %s:%d", file, line);
|
||||
else if (file)
|
||||
fprintf(fp, " %s", file);
|
||||
|
||||
if (use_color)
|
||||
fputs("\033[0m", fp); /* color off */
|
||||
|
||||
fputs(" -- ", fp);
|
||||
|
||||
if (func) {
|
||||
if (use_color) {
|
||||
fputs("\033[34m", fp); /* color on */
|
||||
}
|
||||
fprintf(fp, "%s(): " , func);
|
||||
if (use_color) {
|
||||
fputs("\033[0m", fp); /* color off */
|
||||
}
|
||||
}
|
||||
|
||||
vfprintf(fp, user_format, user_ap);
|
||||
fputc('\n', fp);
|
||||
fflush(fp);
|
||||
|
|
Loading…
Reference in New Issue