Fix a log message

This commit is contained in:
João Valverde 2022-04-06 21:49:52 +01:00
parent 8d646c1657
commit 7429832db4
2 changed files with 3 additions and 3 deletions

View File

@ -616,9 +616,9 @@ dfilter_log_full(const char *domain, enum ws_log_level level,
char *str = dfvm_dump_str(NULL, df, TRUE);
if (G_UNLIKELY(msg == NULL))
ws_log_write_always_full(domain, level, file, line, func, "Filter:%s\n%s", dfilter_text(df), str);
ws_log_write_always_full(domain, level, file, line, func, "\nFilter:\n%s\n%s", dfilter_text(df), str);
else
ws_log_write_always_full(domain, level, file, line, func, "%s:\nFilter: %s\nInstructions:\n%s", msg, dfilter_text(df), str);
ws_log_write_always_full(domain, level, file, line, func, "%s:\nFilter:\n%s\n%s", msg, dfilter_text(df), str);
g_free(str);
}

2
file.c
View File

@ -1685,7 +1685,7 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb
if (dfcode != NULL) {
dfilter_log_full(LOG_DOMAIN_DFILTER, LOG_LEVEL_DEBUG, NULL, -1, NULL,
dfcode, "Rescanning packets with display filter:");
dfcode, "Rescanning packets with display filter");
}
/* Get the union of the flags for all tap listeners. */