From patchwork Fri Sep 11 12:01:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 7160351 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 39CF7BEEC1 for ; Fri, 11 Sep 2015 12:07:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 72432207E8 for ; Fri, 11 Sep 2015 12:07:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89CB7207E4 for ; Fri, 11 Sep 2015 12:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752855AbbIKMCm (ORCPT ); Fri, 11 Sep 2015 08:02:42 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35186 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbbIKMCl (ORCPT ); Fri, 11 Sep 2015 08:02:41 -0400 Received: by pacfv12 with SMTP id fv12so74988960pac.2 for ; Fri, 11 Sep 2015 05:02:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=tAsZ52NylayhKBvmSO5utMdFMyFS9HIbRPwGnPAEapc=; b=QJvorQ7q//UanCvbX62ogzzJDYd2A2e2Br7qYREuKcfIOSJFQO4hcMPcgHrwP56FRg 1dQGOuMMdlSPgoICNiJ1ORN3LOHD1j4Ah/uJeXI330ee00sexiVjddNTW27ogelQVUTL iqtBSdWegbM4AbZ/N16WZlUvFKny9scaEpGJ55AACem9pSaWO74wIStsAmGHIYn79MP7 DbLUygiMMgKJkDheMKDcbFqXlY/zOltEYhwS8MnRxtzAeJDRrrSvn13gb3I7Bfxoj3oJ Nemmvh02tnIT7vVso3CuzMiSO+sOm1mOMwIJ/dMkCAc1QhSoinV6U0pAxItvetMj6yAn SmgQ== X-Gm-Message-State: ALoCoQmO50d6dfGwKMDbtqCe4AjT4tH/UwkSVkDnadMOXdz7/X+O56r32tufw4NiwgUfVa7uRiPw X-Received: by 10.68.221.198 with SMTP id qg6mr96232551pbc.147.1441972960667; Fri, 11 Sep 2015 05:02:40 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id ql5sm2032061pac.46.2015.09.11.05.02.39 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Sep 2015 05:02:40 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , nm@ti.com, sboyd@codeaurora.org Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, rob.herring@linaro.org, lee.jones@linaro.org, Viresh Kumar , Bartlomiej Zolnierkiewicz , Dmitry Torokhov , Greg Kroah-Hartman , Len Brown , linux-kernel@vger.kernel.org (open list), Pavel Machek Subject: [PATCH 03/16] PM / OPP: Improve debug print messages with pr_fmt Date: Fri, 11 Sep 2015 17:31:59 +0530 Message-Id: <33f4074a73101dd58587fa68422db26308f96062.1441972771.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With debug options on, it is difficult to locate OPP core's debug prints. Fix this by prefixing OPP debug prints with KBUILD_MODNAME. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 2 ++ drivers/base/power/opp/cpu.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c index 8a72f0e586e8..113fdd0ce6d9 100644 --- a/drivers/base/power/opp/core.c +++ b/drivers/base/power/opp/core.c @@ -11,6 +11,8 @@ * published by the Free Software Foundation. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index 3d946b508a13..9ac691341fb0 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -10,6 +10,9 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include