Use fprintf_stderr() instead of printf() so "wireshark -D" works (on Windows).

svn path=/trunk/; revision=36387
This commit is contained in:
Chris Maynard 2011-03-28 22:10:41 +00:00
parent d4649392d8
commit 42d40ee494
1 changed files with 3 additions and 3 deletions

View File

@ -587,12 +587,12 @@ capture_opts_print_interfaces(GList *if_list)
for (if_entry = g_list_first(if_list); if_entry != NULL;
if_entry = g_list_next(if_entry)) {
if_info = (if_info_t *)if_entry->data;
printf("%d. %s", i++, if_info->name);
fprintf_stderr("%d. %s", i++, if_info->name);
/* Print the description if it exists */
if (if_info->description != NULL)
printf(" (%s)", if_info->description);
printf("\n");
fprintf_stderr(" (%s)", if_info->description);
fprintf_stderr("\n");
}
}