Re: [PATCH] make loglevel related commandline to early_param

From: Yinghai Lu
Date: Fri Feb 01 2008 - 13:34:37 EST


On Friday 01 February 2008 04:39:39 am Andi Kleen wrote:
> Yinghai Lu <Yinghai.Lu@xxxxxxx> writes:
>
> > diff --git a/init/main.c b/init/main.c
> > index cb81ed1..a774a93 100644
> > --- a/init/main.c
> > +++ b/init/main.c
> > @@ -232,22 +232,18 @@ EXPORT_SYMBOL(loops_per_jiffy);
> >
> > static int __init debug_kernel(char *str)
> > {
> > - if (*str)
> > - return 0;
> > console_loglevel = 10;
> > return 1;
>
> The return semantics changes with early_param so you need to change that in all cases to return 0
> (and negative value for errors)
>


thanks. I will send another one.

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