Skip to content

Commit

Permalink
samples/kprobes: Fix typo in handler_fault()
Browse files Browse the repository at this point in the history
Fix a defective format in handler_fault() ending with an 'n' that
should be '\n'.

Suggested-by: Joe Perches <[email protected]>
Signed-off-by: Tiezhu Yang <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
Tiezhu Yang authored and Jonathan Corbet committed May 20, 2021
1 parent 1ca5d41 commit 61fa308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/kprobes/kprobe_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static void __kprobes handler_post(struct kprobe *p, struct pt_regs *regs,
*/
static int handler_fault(struct kprobe *p, struct pt_regs *regs, int trapnr)
{
pr_info("fault_handler: p->addr = 0x%p, trap #%dn", p->addr, trapnr);
pr_info("fault_handler: p->addr = 0x%p, trap #%d\n", p->addr, trapnr);
/* Return 0 because we don't handle the fault. */
return 0;
}
Expand Down

0 comments on commit 61fa308

Please sign in to comment.