[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F353964.1000405@fastmail.fm>
Date:	Fri, 10 Feb 2012 15:36:04 +0000
From:	Jack Stone <jwjstone@...tmail.fm>
To:	Matthew Garrett <mjg@...hat.com>
CC:	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	dzickus@...hat.com, vgoyal@...hat.com, seiji.aguchi@....com
Subject: Re: [PATCH] kmsg_dump: Don't run on non-error paths by default
On 10/02/12 15:11, Matthew Garrett wrote:
> +/*
> + * Keep this list arranged in rough order of priority. Anything listed after
> + * KMSG_DUMP_OOPS will not be logged by default unless printk.always_kmsg_dump
> + * is passed to the kernel.
> + */
>  enum kmsg_dump_reason {
> -	KMSG_DUMP_OOPS,
>  	KMSG_DUMP_PANIC,
> +	KMSG_DUMP_OOPS,
> +	KMSG_DUMP_EMERG,
>  	KMSG_DUMP_RESTART,
>  	KMSG_DUMP_HALT,
>  	KMSG_DUMP_POWEROFF,
> -	KMSG_DUMP_EMERG,
>  };
...
> +	if (reason > KMSG_DUMP_PANIC && !always_kmsg_dump)
> +		return;
> +
Did you mean KMSG_DUMP_OOPS here?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
