diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-06-09 15:38:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-06-09 22:38:35 +0000 |
commit | 60da2c96ddddd222994e8d25a3825fb8d7fd7ae5 (patch) | |
tree | fa7c36de0bf0a196737ea861eaae3dcded56be3a | |
parent | ad4e81fcf869680b057651970fba38690e82c87d (diff) | |
download | wireshark-60da2c96ddddd222994e8d25a3825fb8d7fd7ae5.tar.gz |
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>
-rw-r--r-- | sharkd.c | 2 | ||||
-rw-r--r-- | tools/oss-fuzzshark/fuzzshark.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); } diff --git a/tools/oss-fuzzshark/fuzzshark.c b/tools/oss-fuzzshark/fuzzshark.c index ccab8a06ee..ac2c809e72 100644 --- a/tools/oss-fuzzshark/fuzzshark.c +++ b/tools/oss-fuzzshark/fuzzshark.c @@ -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); } |