lkml.org 
[lkml]   [2006]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Don't give bad kprobes example aka ") < 0))" typo
On Wed, Nov 15, 2006 at 06:56:19PM +0300, Alexey Dobriyan wrote:
> Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
> ---
>
> Documentation/kprobes.txt | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> --- 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;

This looks good, thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-15 13:01    [W:0.031 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site