]> The Tcpdump Group git mirrors - tcpdump/commitdiff
When printing the link-layer type list, send *all* output to stderr.
authorGuy Harris <[email protected]>
Fri, 7 May 2010 08:11:45 +0000 (01:11 -0700)
committerGuy Harris <[email protected]>
Fri, 7 May 2010 08:11:45 +0000 (01:11 -0700)
tcpdump.c

index 06683af344a483ff5c9874d546e7aea165654afa..65746d8f2df30da186244f3c60e926c1449e4bfb 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -400,7 +400,7 @@ show_dlts_and_exit(const char *device, pcap_t *pd)
                        if (lookup_printer(dlts[n_dlts]) == NULL
                             && lookup_ndo_printer(dlts[n_dlts]) == NULL)
                                (void) fprintf(stderr, " (printing not supported)");
-                       putchar('\n');
+                       fprintf(stderr, "\n");
                } else {
                        (void) fprintf(stderr, "  DLT %d (printing not supported)\n",
                            dlts[n_dlts]);