projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64aaa4f
)
[PATCH] Don't give bad kprobes example aka ") < 0))" typo
author
Alexey Dobriyan
<adobriyan@openvz.org>
Thu, 16 Nov 2006 09:19:28 +0000
(
01:19
-0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Thu, 16 Nov 2006 19:43:38 +0000
(11:43 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/kprobes.txt
patch
|
blob
|
history
diff --git
a/Documentation/kprobes.txt
b/Documentation/kprobes.txt
index
ba26201
..
d71faff
100644
(file)
--- a/
Documentation/kprobes.txt
+++ b/
Documentation/kprobes.txt
@@
-442,9
+442,10
@@
static int __init kprobe_init(void)
kp.fault_handler = handler_fault;
kp.symbol_name = "do_fork";
- if ((ret = register_kprobe(&kp) < 0)) {
+ ret = register_kprobe(&kp);
+ if (ret < 0) {
printk("register_kprobe failed, returned %d\n", ret);
- return
-1
;
+ return
ret
;
}
printk("kprobe registered\n");
return 0;