projects
/
openwrt
/
staging
/
blogic.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 ba26201d50234ba3c78e2c0c9084b1d6d25d7110..d71fafffce90de81cba916c5d98dae7db5e9eb63 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;