From b8ce02e6fb43dedb8d1a480a154cc7cca0c5c353 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 21 Feb 2021 09:46:59 -0800 Subject: editcap: Fixup our help output. Make sure list_capture_types prints to the designated stream so that tools/update-tools-help.py works correctly for `editcap -F`. --- editcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editcap.c') diff --git a/editcap.c b/editcap.c index 0fc4c15001..86712f5073 100644 --- a/editcap.c +++ b/editcap.c @@ -894,7 +894,7 @@ list_capture_types(FILE *stream) { writable_type_subtypes = wtap_get_writable_file_types_subtypes(FT_SORT_BY_NAME); for (guint i = 0; i < writable_type_subtypes->len; i++) { int ft = g_array_index(writable_type_subtypes, int, i); - fprintf(stderr, " %s - %s\n", wtap_file_type_subtype_name(ft), + fprintf(stream, " %s - %s\n", wtap_file_type_subtype_name(ft), wtap_file_type_subtype_description(ft)); } g_array_free(writable_type_subtypes, TRUE); -- cgit v1.2.3