Skip to content

Commit

Permalink
Update tcpv4connect.py
Browse files Browse the repository at this point in the history
fix byte string comparison so we can run with python3
  • Loading branch information
bozakov authored and yonghong-song committed Sep 29, 2021
1 parent e12ec04 commit d3ceae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tracing/tcpv4connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def inet_ntoa(addr):
exit()

# Ignore messages from other tracers
if _tag != "trace_tcp4connect":
if _tag.decode() != "trace_tcp4connect":
continue

printb(b"%-6d %-12.12s %-16s %-16s %-4s" % (pid, task,
Expand Down

0 comments on commit d3ceae0

Please sign in to comment.