Re: [PATCH] make loglevel related commandline to early_param

From: Andi Kleen
Date: Fri Feb 01 2008 - 07:39:56 EST


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)

-Andi
--
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/