From patchwork Sat Oct 17 04:15:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 55150 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 93BA422FFA for ; Sat, 17 Oct 2015 04:16:42 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf29855521lbc.1 for ; Fri, 16 Oct 2015 21:16:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=byGZ4uae7BQ1nMqJZO0fTZamklVFls2YXRQeHaPfJ1c=; b=lxuAFsS1BsMHsmckRNygvA9EpAxIgxKTSLUewGDwSfqZq2h8Naa7mzc4/QdLYzXkhj gI+35SNnYyJV3qMYOW4pgY4s//arzEAyJiOcnxSd387p66BFUt/HQr3KqjyUohBZhjJY HKXbp3q0PhYzthbCsXMU5+q092ofqxLnIzNnsRMKqvUQTOMJECZvEg1kpV/25lzebtlQ kSu5QIxE9klS3l7flTmeM6NTh/dKaH3+U6SW1i0RsGI7HG+wzL5FBb6jBNry4CXALPe8 fv+O4wLg1ni0dZSvutRcnLQQ9JcggDdATwsdYuS3kftpTBVUUNuPus9YdTkOLeQxkkec HfwA== X-Gm-Message-State: ALoCoQm3NEnh2m/GBcXMkkOjBISfMG4oye7a1UvWm2+N49d6YGSEjgUsG3Dnunt0VxHrOw8HsQN9 X-Received: by 10.112.184.170 with SMTP id ev10mr4602079lbc.4.1445055400992; Fri, 16 Oct 2015 21:16:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.37.144 with SMTP id l138ls409142lfl.8.gmail; Fri, 16 Oct 2015 21:16:40 -0700 (PDT) X-Received: by 10.112.170.70 with SMTP id ak6mr9645230lbc.107.1445055400859; Fri, 16 Oct 2015 21:16:40 -0700 (PDT) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id qd5si15008105lbb.83.2015.10.16.21.16.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 21:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lfaz124 with SMTP id z124so87289261lfa.1 for ; Fri, 16 Oct 2015 21:16:40 -0700 (PDT) X-Received: by 10.25.145.132 with SMTP id t126mr6467156lfd.88.1445055400711; Fri, 16 Oct 2015 21:16:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp274441lbq; Fri, 16 Oct 2015 21:16:39 -0700 (PDT) X-Received: by 10.68.163.194 with SMTP id yk2mr5036652pbb.102.1445055399302; Fri, 16 Oct 2015 21:16:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si24990762pat.181.2015.10.16.21.16.39; Fri, 16 Oct 2015 21:16:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751101AbbJQEQh (ORCPT + 12 others); Sat, 17 Oct 2015 00:16:37 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33863 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703AbbJQEQh (ORCPT ); Sat, 17 Oct 2015 00:16:37 -0400 Received: by pabws5 with SMTP id ws5so7614246pab.1 for ; Fri, 16 Oct 2015 21:16:36 -0700 (PDT) X-Received: by 10.66.253.99 with SMTP id zz3mr20510657pac.38.1445055396570; Fri, 16 Oct 2015 21:16:36 -0700 (PDT) Received: from localhost ([223.227.121.117]) by smtp.gmail.com with ESMTPSA id ih4sm23910422pbc.28.2015.10.16.21.16.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 16 Oct 2015 21:16:35 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, sboyd@codeaurora.org, nm@ti.com, Viresh Kumar , Bartlomiej Zolnierkiewicz , Dan Carpenter , Dmitry Torokhov , Greg Kroah-Hartman , Len Brown , linux-kernel@vger.kernel.org (open list), Pavel Machek Subject: [PATCH V3 1/4] PM / OPP: Improve print messages with pr_fmt Date: Sat, 17 Oct 2015 09:45:18 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: <20151016192031.GB16437@codeaurora.org> References: <20151016192031.GB16437@codeaurora.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , To identify OPP core's print messages easily, prefix them with KBUILD_MODNAME. Signed-off-by: Viresh Kumar --- V2->V3: - Improved commit-log. 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 d5c1149ff123..a422ebf2501f 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 7654c5606307..c27a1cdffec9 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