Skip to content

Commit d3ceae0

Browse files
bozakovyonghong-song
authored andcommitted
Update tcpv4connect.py
fix byte string comparison so we can run with python3
1 parent e12ec04 commit d3ceae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tracing/tcpv4connect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def inet_ntoa(addr):
9898
exit()
9999

100100
# Ignore messages from other tracers
101-
if _tag != "trace_tcp4connect":
101+
if _tag.decode() != "trace_tcp4connect":
102102
continue
103103

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

0 commit comments

Comments
 (0)