aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2021-02-21 09:46:59 -0800
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-02-21 22:57:13 +0000
commitb8ce02e6fb43dedb8d1a480a154cc7cca0c5c353 (patch)
tree127dea1189f13774095d9e8ce620fe2c6f9cfbea /editcap.c
parentb9bdce8484ffd1b2447b801f6b74c911c12776c1 (diff)
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`.
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
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);