From: Tiezhu Yang Date: Mon, 17 May 2021 02:21:22 +0000 (+0800) Subject: samples/kprobes: Fix typo in handler_fault() X-Git-Tag: accepted/tizen/unified/20230118.172025~6981^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61fa308f23b5b189196e8e5835433cdff99a44b0;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Tiezhu Yang Acked-by: Masami Hiramatsu Link: https://lore.kernel.org/r/1621218083-23519-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Jonathan Corbet --- diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index c495664..d77a546 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; }