Skip to content

Commit

Permalink
sslsniff: linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaigno committed Oct 7, 2017
1 parent 897c686 commit 7b911b5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tools/sslsniff.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,9 @@ def print_event(cpu, data, size, rw):
e_mark = "-" * 5 + " END DATA (TRUNCATED, " + str(truncated_bytes) + \
" bytes lost) " + "-" * 5

print("%-12s %-18.9f %-16s %-6d %-6d\n%s\n%s\n%s\n\n" % (rw, time_s,
event.comm.decode(),
event.pid,
event.len,
s_mark,
event.v0.decode(),
e_mark))
fmt = "%-12s %-18.9f %-16s %-6d %-6d\n%s\n%s\n%s\n\n"
print(fmt % (rw, time_s, event.comm.decode(), event.pid, event.len, s_mark,
event.v0.decode(), e_mark))

b["perf_SSL_write"].open_perf_buffer(print_event_write)
b["perf_SSL_read"].open_perf_buffer(print_event_read)
Expand Down

0 comments on commit 7b911b5

Please sign in to comment.