Update tcpv4connect.py
authorZdravko Bozakov <bozakov@users.noreply.github.com>
Tue, 28 Sep 2021 20:45:17 +0000 (22:45 +0200)
committeryonghong-song <ys114321@gmail.com>
Wed, 29 Sep 2021 06:12:49 +0000 (23:12 -0700)
fix byte string comparison so we can run with python3

examples/tracing/tcpv4connect.py

index 26d937636ee308689ff69e95689bbed81806ac65..40963cfdd61046599e90ea9357c71de7c5f1ad1a 100755 (executable)
@@ -98,7 +98,7 @@ while 1:
            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,