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.

This commit is contained in:
petermcs
2012-04-30 08:03:13 +00:00
parent 972afaa974
commit 8d50bacbde
+1 -1
View File
@@ -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();