Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754022AbZFWTUv (ORCPT ); Tue, 23 Jun 2009 15:20:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752381AbZFWTUo (ORCPT ); Tue, 23 Jun 2009 15:20:44 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:43385 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbZFWTUn (ORCPT ); Tue, 23 Jun 2009 15:20:43 -0400 Date: Tue, 23 Jun 2009 21:20:24 +0200 From: Ingo Molnar To: Len Brown Cc: "H. Peter Anvin" , Thomas Gleixner , Yinghai Lu , Andrew Morton , Linus Torvalds , sfi-devel@simplefirmware.org, Linux Kernel Mailing List , Feng Tang , Andi Kleen Subject: Re: [PATCH 3/8] SFI: core support Message-ID: <20090623192024.GC14852@elte.hu> References: <7425334c8329b15bec7cb4ecd0b17af042e97465.1245740912.git.len.brown@intel.com> <8d9bab79ce1169afd419035f70177e52d47626ca.1245740912.git.len.brown@intel.com> <20090623075643.GC6397@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 717 Lines: 23 * Len Brown wrote: > Re: #define PREFIX "SFI: " > > The SFI code uses all pr_info/debug/warning/err format > and so it looks like the way to go is like this; > > #define KMSG_COMPONENT "SFI" > #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt > > and get rid of the PREFIX stuff in the actual messages. > Is that the recommended way to go these days? Yeah, overloadig pr_fmt looks entirely correct and per design. That will make it even cleaner. Ingo -- 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/