1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

script/traffic_replay: print packets data to stderr

This is debug info, should print to stderr.
Otherwise it will flood stdout.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joe Guo 2018-08-20 16:31:32 +12:00 committed by Douglas Bagnall
parent e8a1773ce2
commit 33ce1fa23e

View File

@ -272,9 +272,9 @@ def main():
if opts.debuglevel > 5: if opts.debuglevel > 5:
for c in conversations: for c in conversations:
for p in c.packets: for p in c.packets:
print(" ", p) print(" ", p, file=sys.stderr)
print('=' * 72) print('=' * 72, file=sys.stderr)
if opts.number_of_users and opts.number_of_users < len(conversations): if opts.number_of_users and opts.number_of_users < len(conversations):
print_err(("--number-of-users (%d) is less than the " print_err(("--number-of-users (%d) is less than the "