OSDN Git Service

samples/kprobes: Fix typo in handler_post()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 17 May 2021 02:21:23 +0000 (10:21 +0800)
committerJonathan Corbet <corbet@lwn.net>
Thu, 20 May 2021 20:03:47 +0000 (14:03 -0600)
commitdb1ea668843e048a544021b9bc0aee5aac0b6424
tree631387a00089f37b6dcdef7cfab7a61efc0a1e74
parent61fa308f23b5b189196e8e5835433cdff99a44b0
samples/kprobes: Fix typo in handler_post()

It should use post_handler instead of pre_handler in handler_post().

As Joe Perches suggested, it would be better to use pr_fmt and remove
all the embedded pre/post/fault strings. This would change the style of
the output through.

Fixes: e16c5dd5157e ("samples/kprobes: Add s390 case in kprobe example module")
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Marc Koderer <marc@koderer.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/1621218083-23519-3-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
samples/kprobes/kprobe_example.c