Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598AbZI2SPC (ORCPT ); Tue, 29 Sep 2009 14:15:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753537AbZI2SPB (ORCPT ); Tue, 29 Sep 2009 14:15:01 -0400 Received: from mail.perches.com ([173.55.12.10]:1420 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753517AbZI2SPA (ORCPT ); Tue, 29 Sep 2009 14:15:00 -0400 Subject: [RFC] move #define pr_fmt KBUILD_MODNAME and KMSG_COMPONENT to Makefiles? From: Joe Perches To: LKML Cc: Sam Ravnborg , Martin Schwidefsky Content-Type: text/plain; charset="UTF-8" Date: Tue, 29 Sep 2009 11:15:04 -0700 Message-Id: <1254248104.28232.447.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 562 Lines: 22 There are starting to be more uses of #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt and #define KMSG_COMPONENT "foo" #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt in kernel sources. Perhaps it would be better to put these defines in the appropriate Makefile and not sprinkle the sources with them multiple times? -- 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/