From patchwork Mon Jul 27 12:28:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51513 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 C83E822918 for ; Mon, 27 Jul 2015 12:28:41 +0000 (UTC) Received: by lbcjj5 with SMTP id jj5sf27124318lbc.1 for ; Mon, 27 Jul 2015 05:28: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: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=TtD7p42uzsnINLfTlKUWEik6Fn4IwQ7dyapbBwDEjjc=; b=Fmi/9UiCJNxZJ9wym7Ir1dDQaR8kxkez3ZiUrLKtHa9vtxFQBxUPVlzqWuXG3ptjRO y4lSo/oadFHt7ZPH55fB9sB6KujMT/E8xdqrdOyZNJ7LwaAj64h2c77gRufCeWPHdDmg mqmhnSejGxN1PEL899FuuC1BuxiML145+WgMYjUsn1F8SWYdorzyXN+F6P0ig4ma6CTj +EEb5+3gjca3jScWtMWmO67S4d1DlMDWPNJogKyTHK/OMU+AGNDKcFV1g4OLTfJtPk5C Sz+8k7Why7WSeFRX5nnkp+/m0ihKKgqDUznva9I6Mh4I27HkCEYzF2YNR+b8Z+qHXICa FsfA== X-Gm-Message-State: ALoCoQmJW9pBj4wIybM0msYKSA3ETdklRiy/KN+5P7SgQNCoZXWQC6mDeFAMSZ1SjeU5txndhDAn X-Received: by 10.194.179.42 with SMTP id dd10mr12010722wjc.7.1438000120745; Mon, 27 Jul 2015 05:28:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.169 with SMTP id f9ls646258lam.93.gmail; Mon, 27 Jul 2015 05:28:40 -0700 (PDT) X-Received: by 10.112.85.3 with SMTP id d3mr26816432lbz.33.1438000120517; Mon, 27 Jul 2015 05:28:40 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id zs5si15125261lbb.37.2015.07.27.05.28.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 05:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbzr7 with SMTP id zr7so52253950lbb.1 for ; Mon, 27 Jul 2015 05:28:40 -0700 (PDT) X-Received: by 10.152.207.76 with SMTP id lu12mr26660097lac.29.1438000120416; Mon, 27 Jul 2015 05:28: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.7.198 with SMTP id l6csp1501807lba; Mon, 27 Jul 2015 05:28:39 -0700 (PDT) X-Received: by 10.66.62.229 with SMTP id b5mr66884436pas.81.1438000118609; Mon, 27 Jul 2015 05:28:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yc9si43824581pab.215.2015.07.27.05.28.37; Mon, 27 Jul 2015 05:28:38 -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 S1752533AbbG0M2g (ORCPT + 12 others); Mon, 27 Jul 2015 08:28:36 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36523 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbbG0M2g (ORCPT ); Mon, 27 Jul 2015 08:28:36 -0400 Received: by pdjr16 with SMTP id r16so52371456pdj.3 for ; Mon, 27 Jul 2015 05:28:35 -0700 (PDT) X-Received: by 10.70.48.34 with SMTP id i2mr67306703pdn.125.1438000115606; Mon, 27 Jul 2015 05:28:35 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id k5sm29325502pdn.10.2015.07.27.05.28.34 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 27 Jul 2015 05:28:34 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, preeti.lkml@gmail.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 1/9] cpufreq: Use __func__ to print function's name Date: Mon, 27 Jul 2015 17:58:06 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: 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.217.173 as permitted sender) smtp.mail=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: , Its better to use __func__ to print functions name instead of writing the name in the print statement. This also has the advantage that a change in function's name doesn't force us to change the print message as well. Reviewed-by: Preeti U Murthy Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 46251e8d30f2..f620055279f3 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2074,8 +2074,7 @@ static int __cpufreq_governor(struct cpufreq_policy *policy, if (!try_module_get(policy->governor->owner)) return -EINVAL; - pr_debug("__cpufreq_governor for CPU %u, event %u\n", - policy->cpu, event); + pr_debug("%s: for CPU %u, event %u\n", __func__, policy->cpu, event); mutex_lock(&cpufreq_governor_lock); if ((policy->governor_enabled && event == CPUFREQ_GOV_START)