diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2021-05-17 10:21:22 +0800 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-05-20 14:02:54 -0600 |
commit | 61fa308f23b5b189196e8e5835433cdff99a44b0 (patch) | |
tree | 8df0d03ba91f57a8751fcc954884040273aeb778 /samples/kprobes | |
parent | 1ca5d41c371e6abe788439e6eaecfa76baaf6979 (diff) |
samples/kprobes: Fix typo in handler_fault()
Fix a defective format in handler_fault() ending with an 'n' that
should be '\n'.
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/1621218083-23519-2-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'samples/kprobes')
-rw-r--r-- | samples/kprobes/kprobe_example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index c495664c0a9b..d77a5464d107 100644 --- a/samples/kprobes/kprobe_example.c +++ b/samples/kprobes/kprobe_example.c @@ -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; } |