From patchwork Thu Oct 15 16:12:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 55054 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 6559C22FFA for ; Thu, 15 Oct 2015 16:13:23 +0000 (UTC) Received: by lbbyh1 with SMTP id yh1sf6735781lbb.0 for ; Thu, 15 Oct 2015 09:13:22 -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: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=ZlFhaYZbscYMEbOUmiSG2p9izmpuysxfd7nWtHJyJfc=; b=UE8zmtYH8L8HkDnTUvJtTd5LY74SoU6qG0iOyMh92+gH9a6A6PmedyOvl/v0XYJFGX a5EySfjyuwwKUmi9B2cv3L6/GtUMqtp5iwT2uI89yd2X40EUWnlW/yq2oKvrF4poChSw ax6bSxUF7VKoOGb7WIN/gVtReFjLzsoJPgOj9388lLSBnGLm02WqEgyW3dEKeA0uoira HdEEo956mjBaEg0QXB1HW1Z1tysYE2zjmNXqXKyD4O1sFoO/5yh3g5Tp/GEKe2dJXBhM 7cSuPIaCbiiM9zALelB3iAWMwUxpxaxS6HXWz8qUW11r2NY1iCsV8mwIfP8DCNmTWQoE /kog== X-Gm-Message-State: ALoCoQlrYextyvLotZ9bADV6AgTadYwCweN268l3+NrfinL48PatmjDrsuPeFjDj4REGv7bNqXhY X-Received: by 10.194.109.233 with SMTP id hv9mr2361768wjb.1.1444925601603; Thu, 15 Oct 2015 09:13:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.20.92 with SMTP id k89ls68655lfi.16.gmail; Thu, 15 Oct 2015 09:13:20 -0700 (PDT) X-Received: by 10.112.62.194 with SMTP id a2mr4228916lbs.80.1444925600825; Thu, 15 Oct 2015 09:13:20 -0700 (PDT) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id s20si9597465lfe.134.2015.10.15.09.13.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 09:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lffy185 with SMTP id y185so34586421lff.2 for ; Thu, 15 Oct 2015 09:13:20 -0700 (PDT) X-Received: by 10.25.207.82 with SMTP id f79mr3391004lfg.73.1444925600442; Thu, 15 Oct 2015 09:13:20 -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 w3csp726221lbq; Thu, 15 Oct 2015 09:13:19 -0700 (PDT) X-Received: by 10.60.69.65 with SMTP id c1mr6083690oeu.38.1444925598734; Thu, 15 Oct 2015 09:13:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si7886243oig.37.2015.10.15.09.13.18; Thu, 15 Oct 2015 09:13:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1753819AbbJOQNQ (ORCPT + 30 others); Thu, 15 Oct 2015 12:13:16 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:32839 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753779AbbJOQNM (ORCPT ); Thu, 15 Oct 2015 12:13:12 -0400 Received: by pabrc13 with SMTP id rc13so91890519pab.0 for ; Thu, 15 Oct 2015 09:13:12 -0700 (PDT) X-Received: by 10.69.17.1 with SMTP id ga1mr10771107pbd.163.1444925591907; Thu, 15 Oct 2015 09:13:11 -0700 (PDT) Received: from localhost ([223.227.130.246]) by smtp.gmail.com with ESMTPSA id tp6sm16215766pbc.81.2015.10.15.09.13.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Oct 2015 09:13:11 -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 V2 1/4] PM / OPP: Improve debug print messages with pr_fmt Date: Thu, 15 Oct 2015 21:42:43 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.53 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: , 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 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