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: 53451 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 85E1B22DD2 for ; Fri, 11 Sep 2015 12:02:50 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf17693751wic.1 for ; Fri, 11 Sep 2015 05:02:49 -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=VPG8LBJ54AVyICPJ8JkO/r/EnryDX3+m/qsqUZLW6Ww=; b=eNIYRTfFIq1sd0ue4fJ7YEjTWahNh6bUKe0KAlOyJBpg83nydbXX7hYWU4Tl+GI8D4 S3LyMGbM4l3fHo/6E/DQBjuqLyt/W52u1TzQw6SK/9RWXmZTmL7f5JJ2YHLxjHwdUelM l6Xg5SUYggAcFOq4R2FT/a8KFsymsSiILm8lttPrmGpB3y8viGXpJJsXmV9OyaBNYPv7 ZjJKVV9WZo1PFm9e+4xrbIqI7FNUnUkr+iE7d6PT4lY8yRMRTbgzDBjTHWOGW/bIC1F3 qhP9zy2omiRFbbDqXr0dFr5Sni294De82GpBckyZeJ8YYOckmtDdZlpV1Rtnhl2ttQzM MAbg== X-Gm-Message-State: ALoCoQmEg8arl45JKknidV5zag0qzDv/2rwVObkUKo9TBbP5yyhswT4frvoQFEsbQajukTy1kiPm X-Received: by 10.194.76.6 with SMTP id g6mr11200509wjw.1.1441972969851; Fri, 11 Sep 2015 05:02:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.11.162 with SMTP id ej2ls366127lad.101.gmail; Fri, 11 Sep 2015 05:02:49 -0700 (PDT) X-Received: by 10.152.29.232 with SMTP id n8mr33791768lah.97.1441972969662; Fri, 11 Sep 2015 05:02:49 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id a19si765367lbo.175.2015.09.11.05.02.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 05:02:49 -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 lagj9 with SMTP id j9so47145640lag.2 for ; Fri, 11 Sep 2015 05:02:49 -0700 (PDT) X-Received: by 10.112.235.130 with SMTP id um2mr41524677lbc.72.1441972969536; Fri, 11 Sep 2015 05:02:49 -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 w3csp1544839lbq; Fri, 11 Sep 2015 05:02:48 -0700 (PDT) X-Received: by 10.50.143.42 with SMTP id sb10mr2388015igb.49.1441972968468; Fri, 11 Sep 2015 05:02:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si131502ioi.156.2015.09.11.05.02.47; Fri, 11 Sep 2015 05:02:48 -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 S1752918AbbIKMCn (ORCPT + 28 others); Fri, 11 Sep 2015 08:02:43 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33755 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752853AbbIKMCl (ORCPT ); Fri, 11 Sep 2015 08:02:41 -0400 Received: by pacex6 with SMTP id ex6so73864037pac.0 for ; Fri, 11 Sep 2015 05:02:40 -0700 (PDT) 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-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.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: , 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