Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756743AbYHGRQ6 (ORCPT ); Thu, 7 Aug 2008 13:16:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752931AbYHGRP3 (ORCPT ); Thu, 7 Aug 2008 13:15:29 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36059 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753086AbYHGRP0 (ORCPT ); Thu, 7 Aug 2008 13:15:26 -0400 Date: Thu, 7 Aug 2008 10:03:10 -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, Andrew Morton , Michael Holzheu , Gerrit Huizenga , Randy Dunlap , Jan Kara , Pavel Machek , Sam Ravnborg , Joe Perches , Jochen =?iso-8859-1?B?Vm/f?= , Kunai Takashi , Tim Bird Subject: Re: [patch 3/3] kmsg: convert xpram messages to kmsg api. Message-ID: <20080807170310.GC9214@suse.de> References: <20080730165656.118280544@de.ibm.com> <20080730171157.550296160@de.ibm.com> <20080730194308.GB22441@suse.de> <1217493222.8555.8.camel@localhost> <20080805223429.GB6552@suse.de> <1218012373.20769.22.camel@localhost> <20080806201118.GB30086@suse.de> <1218098353.1033.19.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1218098353.1033.19.camel@localhost> 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 Content-Length: 3422 Lines: 74 On Thu, Aug 07, 2008 at 10:39:13AM +0200, Martin Schwidefsky wrote: > On Wed, 2008-08-06 at 13:11 -0700, Greg KH wrote: > > > > > > > +#define KMSG_COMPONENT "xpram" > > > > > > > > > > > > Can't you just use KBUILD_MODULE_NAME instead? That makes it one less > > > > > > thing you have to define in the code (and forget about when moving files > > > > > > around or cut-and-pasting). > > > > > > > > > > Two reason why we don't want to use KBUILD_MODULE_NAME: > > > > > 1) the message tag (message component + message id) should never change, > > > > > if you change the code structure the module name might change as well. > > > > > > > > Um, isn't that the point? If the code structure changes, then perhaps > > > > the message also should change? If not, it's trival to adjust. > > > > > > NO! The message nor the message tag should change if the message > > > semantically still reports the same thing. If the meaning of the message > > > changes then change the message AND the message tag. > > > > Why can't the message reporting change? What's the reluctance for > > change here for something that did happen to move to a different file? > > It shouldn't matter _at all_ as you are only looking at the > > tags/messages for a specific kernel version to ensure they match up. > > Any future kernel version might have different ones. > > > > It's not like once you write a message/tag it will stay that way fixed > > for all time, that's just not going to fly with the way the Linux kernel > > is developed. > > The message tag should uniquely identify the message so that the > translation projects have something to work with. If we keep changing > the message tag with each kernel release that will create a huge effort > to keep track of the messages. But that's the point here. The kernel does change a lot with each release (you have seen the numbers, right?) And if a change happens, then the message also needs to change as something changed! Why would you think that these messages could be static till the end of time? That's not how the kernel works. > > > > > 2) we want to be able to use the same kmsg component in multiple .c > > > > > files. > > > > > > > > Why would this matter? It's just a "tag", who cares about the actual > > > > name? > > > > > > The actual name is not really important, but if the name is choosen > > > wisely it does convey information. Guess what "dasd.17" tells you > > > something about the dasd driver, "zfcp.42" about the zfcp driver and so > > > on. The code structure should not dictate how the message tag is > > > created. > > > > The message tag should not dictate anything except how to look it up > > somehow. So it doesn't matter if the name changes, as long as the > > ability to get the real information is still there. > > > > So the kernel could change the tags every other release and there would > > be no problem. > > I think the unique message ids are very important. If we change them all > the time this would severly limit the value of the kernel message > catalog. Again, they will be unique, but again, they will change as the kernel changes, they will have to. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/