From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754029AbYIZTpV (ORCPT ); Fri, 26 Sep 2008 15:45:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753853AbYIZTpG (ORCPT ); Fri, 26 Sep 2008 15:45:06 -0400 Received: from ns2.suse.de ([195.135.220.15]:34274 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752999AbYIZTpD (ORCPT ); Fri, 26 Sep 2008 15:45:03 -0400 Date: Fri, 26 Sep 2008 10:57:45 -0700 From: Greg KH To: Martin Schwidefsky Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, lf_kernel_messages@lists.linux-foundation.org, Rusty Russell , Kay Sievers , Joe Perches , Tim Hockin , Andrew Morton , Michael Holzheu , Gerrit Huizenga , Randy Dunlap , Jan Kara , Pavel Machek , Sam Ravnborg , Jochen =?iso-8859-1?B?Vm/f?= , Kunai Takashi , Tim Bird , Jan Blunck , Rick Troth , Utz Bacher Subject: Re: [patch 2/6] kmsg: tagged device messages. Message-ID: <20080926175745.GD700@suse.de> References: <20080925162827.818261893@de.ibm.com> <20080925163019.750494793@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080925163019.750494793@de.ibm.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 25, 2008 at 06:28:29PM +0200, Martin Schwidefsky wrote: > From: Martin Schwidefsky > From: Michael Holzheu > > Add CONFIG_MSG_IDS support to the dev_xxx printk family. The message > tag for a device printk consists of the driver name and the 24 bit > hash over the message text. The hash is included in the printed line > if the KMSG_COMPONENT macro is defined and CONFIG_MSG_IDS=y. For > source files that do not define KMSG_COMPONENT or CONFIG_MSG_IDS=n > the dev_xxx printks use the old-style format. > > To make it possible for a script to extract the correct message tag > for the dev_xxx printks the KMSG_COMPONENT and the driver name need to > be identical for all dev_xxx printks in a source file. If a source file > is supposed to be converted to use message tags and there are dev_xxx > printks with driver names different to KMSG_COMPONENT these dev_xxx > printks need to be replaced with kmsg_xxx printks. In praxis this > should not be a problem since there are very few dev_xxx printks outside > of driver code. > > In addition to the KMSG_COMPONENT changes in include/linux/device.h the > dev_xxx macros with variable arguments are converted from the gcc specific > '## arg' to the C99 variant '##__VA_ARGS__'. > > Signed-off-by: Michael Holzheu > Signed-off-by: Martin Schwidefsky Nice, thanks for reworking this. Feel free to add: Acked-by: Greg Kroah-Hartman here. Note that you will get some merge errors with -next in device.h due to the dynamic debug printk work that is in my tree and in -next as well. But it should be simple to resolve. thanks, greg k-h