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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user