Skip to content

Commit

Permalink
fix killsnoop.py srr/bytes type error (iovisor#2007)
Browse files Browse the repository at this point in the history
Fix issue iovisor#2002

Signed-off-by: Yonghong Song <[email protected]>
  • Loading branch information
yonghong-song committed Oct 11, 2018
1 parent d4b2387 commit 1d23480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/killsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d23480

Please sign in to comment.