X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/77453f535584e4854488c0325e4cf67b19180edd..refs/pull/494/head:/print.c diff --git a/print.c b/print.c index ee8ee97b..9fedd9fb 100644 --- a/print.c +++ b/print.c @@ -462,6 +462,8 @@ ndo_printf(netdissect_options *ndo _U_, const char *fmt, ...) ret = vfprintf(stdout, fmt, args); va_end(args); + if (ret < 0) + ndo_error(ndo, "Unable to write output: %s", pcap_strerror(errno)); return (ret); }