From 8d50bacbde5a9c9c067eb030bb12337761b97e2d Mon Sep 17 00:00:00 2001 From: petermcs Date: Mon, 30 Apr 2012 08:03:13 +0000 Subject: [PATCH] Changed output of current packet to stderr when using the --scan option so that the scan result can be piped to a file. Makes checking batches of captures easier. --- bacnet-stack/demo/mstpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/demo/mstpcap/main.c b/bacnet-stack/demo/mstpcap/main.c index bba1baa1..e361e02d 100644 --- a/bacnet-stack/demo/mstpcap/main.c +++ b/bacnet-stack/demo/mstpcap/main.c @@ -823,7 +823,7 @@ int main( if (test_global_header(argv[2])) { while (read_received_packet(mstp_port)) { packet_count++; - fprintf(stdout, "\r%hu packets", packet_count); + fprintf(stderr, "\r%hu packets", packet_count); } if (packet_count) { packet_statistics_print();