Skip to content

Commit

Permalink
urandomread.py: remove extra tail semicolon after TRACEPOINT_PROBE
Browse files Browse the repository at this point in the history
A function definition doesn't need a tail semicolon.

Signed-off-by: Liu Bo <[email protected]>
  • Loading branch information
liubogithub committed Feb 9, 2018
1 parent e01c993 commit 8268edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/tracing/urandomread-explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
int printarg(struct urandom_read_args *args) {
bpf_trace_printk("%d\\n", args->got_bits);
return 0;
};
}
"""

# load BPF program
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing/urandomread.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// args is from /sys/kernel/debug/tracing/events/random/urandom_read/format
bpf_trace_printk("%d\\n", args->got_bits);
return 0;
};
}
""")

# header
Expand Down

0 comments on commit 8268edb

Please sign in to comment.