From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754757AbYIZIoY (ORCPT ); Fri, 26 Sep 2008 04:44:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752822AbYIZIoQ (ORCPT ); Fri, 26 Sep 2008 04:44:16 -0400 Received: from mtagate1.de.ibm.com ([195.212.17.161]:38973 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751818AbYIZIoO (ORCPT ); Fri, 26 Sep 2008 04:44:14 -0400 Subject: Re: [patch 1/6] kmsg: tagged kernel messages. From: Martin Schwidefsky Reply-To: schwidefsky@de.ibm.com To: Rusty Russell Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, lf_kernel_messages@lists.linux-foundation.org, Greg KH , Kay Sievers , Joe Perches , Tim Hockin , Andrew Morton , Michael Holzheu , Gerrit Huizenga , Randy Dunlap , Jan Kara , Pavel Machek , Sam Ravnborg , Jochen =?ISO-8859-1?Q?Vo=DF?= , Kunai Takashi , Tim Bird , Jan Blunck , Rick Troth , Utz Bacher In-Reply-To: <200809261448.05391.rusty@rustcorp.com.au> References: <20080925162827.818261893@de.ibm.com> <20080925163019.210654702@de.ibm.com> <200809261448.05391.rusty@rustcorp.com.au> Content-Type: text/plain Organization: IBM Corporation Date: Fri, 26 Sep 2008 10:29:34 +0200 Message-Id: <1222417774.22679.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2008-09-26 at 14:48 +1000, Rusty Russell wrote: > On Friday 26 September 2008 02:28:28 Martin Schwidefsky wrote: > > +#define kmsg_emerg(fmt, ...) \ > > + kmsg_printk_hash(KERN_EMERG, fmt, ##__VA_ARGS__) > > +#define kmsg_alert(fmt, ...) \ > > + kmsg_printk_hash(KERN_ALERT, fmt, ##__VA_ARGS__) > > +#define kmsg_crit(fmt, ...) \ > > + kmsg_printk_hash(KERN_CRIT, fmt, ##__VA_ARGS__) > > +#define kmsg_err(fmt, ...) \ > > + kmsg_printk_hash(KERN_ERR, fmt, ##__VA_ARGS__) > > +#define kmsg_warn(fmt, ...) \ > > + kmsg_printk_hash(KERN_WARNING, fmt, ##__VA_ARGS__) > > +#define kmsg_notice(fmt, ...) \ > > + kmsg_printk_hash(KERN_NOTICE, fmt, ##__VA_ARGS__) > > +#define kmsg_info(fmt, ...) \ > > + kmsg_printk_hash(KERN_INFO, fmt, ##__VA_ARGS__) > > Now I'm going to be an asshole and ask you to define when each of these levels > should be used. Do we need all of them? These are just the regular printk levels. If your old printk used a particular level, have the kmsg_xxx printk use the same level. The question about message severity and message documenation are independent, aren't they? -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.