forked from osmocom/wireshark
Just print the string color_filters_init() provides on an error.
It gives all the necessary details; no need to mention the name of a routine the existence of which the user is probably unaware. Change-Id: I66d372bc6650c84fbbc6be438be695eff1048413 Reviewed-on: https://code.wireshark.org/review/22055 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
ad4e81fcf8
commit
60da2c96dd
2
sharkd.c
2
sharkd.c
|
@ -209,7 +209,7 @@ main(int argc, char *argv[])
|
|||
read_filter_list(CFILTER_LIST);
|
||||
|
||||
if (!color_filters_init(&err_msg, NULL)) {
|
||||
fprintf(stderr, "color_filters_init() failed %s\n", err_msg);
|
||||
fprintf(stderr, "%s\n", err_msg);
|
||||
g_free(err_msg);
|
||||
}
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ fuzz_init(int argc _U_, char **argv)
|
|||
|
||||
if (!color_filters_init(&err_msg, NULL))
|
||||
{
|
||||
fprintf(stderr, "color_filters_init() failed %s\n", err_msg);
|
||||
fprintf(stderr, "%s\n", err_msg);
|
||||
g_free(err_msg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue