Commit 1d234802 authored by yonghong-song's avatar yonghong-song Committed by GitHub

fix killsnoop.py srr/bytes type error (#2007)

Fix issue #2002
Signed-off-by: default avatarYonghong Song <yhs@fb.com>
parent d4b23876
......@@ -139,7 +139,7 @@ def print_event(cpu, data, size):
if (args.failed and (event.ret >= 0)):
return
printb(b"%-9s %-6d %-16s %-4d %-6d %d" % (strftime("%H:%M:%S"),
printb(b"%-9s %-6d %-16s %-4d %-6d %d" % (strftime("%H:%M:%S").encode('ascii'),
event.pid, event.comm, event.sig, event.tpid, event.ret))
# loop with callback to print_event
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment