Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753948Ab2JQFzV (ORCPT ); Wed, 17 Oct 2012 01:55:21 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:60377 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979Ab2JQFzT (ORCPT ); Wed, 17 Oct 2012 01:55:19 -0400 MIME-Version: 1.0 In-Reply-To: <1350452374.3072.19.camel@joe-AO722> References: <3b38cb8ab136e5af3a70fceb7d77ad9fc889eb3f.1350451100.git.viresh.kumar@linaro.org> <1350452374.3072.19.camel@joe-AO722> Date: Wed, 17 Oct 2012 11:25:18 +0530 Message-ID: Subject: Re: [PATCH 1/2] cpufreq: Improve debug prints From: Viresh Kumar To: Joe Perches Cc: rjw@sisk.pl, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org, patches@linaro.org, pdsw-power-team@arm.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 34 On 17 October 2012 11:09, Joe Perches wrote: > On Wed, 2012-10-17 at 10:50 +0530, Viresh Kumar wrote: >> With debug options on, it is difficult to locate cpufreq core's debug prints. > [] >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > [] >> @@ -15,6 +15,8 @@ >> +#define pr_fmt(fmt) "cpufreq: " fmt > > I'd prefer that > > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > be used for all of these. Hi Joe, Sorry, i am not sure how KBUILD_MODNAME is compiled by kernel. If i am not wrong KBUILD_MODNAME would work only for drivers that can be added as module? If so, then it may not apply here, as most of the stuff i have updated doesn't call module_init(). So, if i try KBUILD_MODNAME with my patch i get prints as: KBUILD_MODNAME: -- viresh -- 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/