Skip to content

Commit 995e481

Browse files
authored
tools/tcpsynbl.py: several small improvements of coding style (iovisor#4415)
* tools/tcpsynbl.py: remove trailing semicolon * tools/tcpsynbl.py: remove whitespaces in blank line
1 parent ec8a4f7 commit 995e481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/tcpsynbl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
int do_entry(struct pt_regs *ctx) {
3434
struct sock *sk = (struct sock *)PT_REGS_PARM1(ctx);
35-
35+
3636
backlog_key_t key = {};
3737
key.backlog = sk->sk_max_ack_backlog;
3838
key.slot = bpf_log2l(sk->sk_ack_backlog);
@@ -67,7 +67,7 @@
6767
b.attach_kprobe(event="tcp_v4_syn_recv_sock", fn_name="do_entry")
6868
b.attach_kprobe(event="tcp_v6_syn_recv_sock", fn_name="do_entry")
6969

70-
print("Tracing SYN backlog size. Ctrl-C to end.");
70+
print("Tracing SYN backlog size. Ctrl-C to end.")
7171

7272
try:
7373
sleep(99999999)

0 commit comments

Comments
 (0)