[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090623192024.GC14852@elte.hu>
Date: Tue, 23 Jun 2009 21:20:24 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Len Brown <lenb@...nel.org>
Cc: "H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Yinghai Lu <yinghai@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
sfi-devel@...plefirmware.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Feng Tang <feng.tang@...el.com>,
Andi Kleen <andi@...stfloor.org>
Subject: Re: [PATCH 3/8] SFI: core support
* Len Brown <lenb@...nel.org> 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@...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