Message ID | e836441d6e1ad1ba8c136dc301ee2ad9df08fa72.1434959517.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBRECT6WAKGQESMTON4I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E59DA21594 for <linaro@patches.linaro.org>; Mon, 22 Jun 2015 08:03:17 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf42072509lbb.1 for <linaro@patches.linaro.org>; Mon, 22 Jun 2015 01:03:16 -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=T/HGJhI4ggrURLJg4lH7Z+sKAm/imrKziN7S92DPdoE=; b=By7zxdR61QNLb0lsJ5vmo2j04hazpa0hAMHRffu3/kLGif6RUr940gVs1V1/d4RcQ1 pPnBWo7ZGVritDVJWmFJrk0+F55BnZz3wzD4ec4Pw8N6XIXPz/RGShHoX0cGIkKdpteS Xbkqs5rmSs3tVZtqxTzF8bEWNp/YrDKBfz8mUl9rhP7lX/OLY/UuCrhCPulgnRVHNpfz gLo0sZrrM6yd2W94JHoGDRa3NjCjILPTOJvT0J6U8rLGbwiVm99OOoA87wabsmw4xS1/ 1YLFrYnDfXmigt48ZobipVQt+w1gJu3b7HSwM2xTRr9A4zRXgJJEdv3U2Az7oj8655CS eiXA== X-Gm-Message-State: ALoCoQkIc2HLgsKMXyLu6v4bibbx3zZUto5KcOCL6iYFOsrd77apVlzO8yJX/bN7iLa7U9LlE71Y X-Received: by 10.180.182.49 with SMTP id eb17mr15055568wic.2.1434960196784; Mon, 22 Jun 2015 01:03:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.1 with SMTP id n1ls738817laa.87.gmail; Mon, 22 Jun 2015 01:03:16 -0700 (PDT) X-Received: by 10.112.92.99 with SMTP id cl3mr9107481lbb.34.1434960196504; Mon, 22 Jun 2015 01:03:16 -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 sj5si15912849lbb.44.2015.06.22.01.03.16 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 01:03:16 -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 lacny3 with SMTP id ny3so104637859lac.3 for <patchwork-forward@linaro.org>; Mon, 22 Jun 2015 01:03:16 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr29246903lbb.106.1434960196274; Mon, 22 Jun 2015 01:03:16 -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.108.230 with SMTP id hn6csp2208663lbb; Mon, 22 Jun 2015 01:03:15 -0700 (PDT) X-Received: by 10.68.252.38 with SMTP id zp6mr56850506pbc.159.1434960194565; Mon, 22 Jun 2015 01:03:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si28342941pbq.257.2015.06.22.01.03.13; Mon, 22 Jun 2015 01:03:14 -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 S1754485AbbFVIDM (ORCPT <rfc822;amit.pundir@linaro.org> + 11 others); Mon, 22 Jun 2015 04:03:12 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:33529 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754380AbbFVIDL (ORCPT <rfc822;linux-pm@vger.kernel.org>); Mon, 22 Jun 2015 04:03:11 -0400 Received: by pdjn11 with SMTP id n11so133804600pdj.0 for <linux-pm@vger.kernel.org>; Mon, 22 Jun 2015 01:03:11 -0700 (PDT) X-Received: by 10.70.40.164 with SMTP id y4mr56539930pdk.25.1434960191074; Mon, 22 Jun 2015 01:03:11 -0700 (PDT) Received: from localhost ([122.167.71.211]) by mx.google.com with ESMTPSA id de4sm18830181pbb.95.2015.06.22.01.03.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 22 Jun 2015 01:03:10 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net>, Preeti U Murthy <preeti@linux.vnet.ibm.com> Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH 01/10] cpufreq: Use __func__ to print function's name Date: Mon, 22 Jun 2015 13:32:48 +0530 Message-Id: <e836441d6e1ad1ba8c136dc301ee2ad9df08fa72.1434959517.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1434959517.git.viresh.kumar@linaro.org> References: <cover.1434959517.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1434959517.git.viresh.kumar@linaro.org> References: <cover.1434959517.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 0b3c60861bdf..5863db9213aa 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2097,8 +2097,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)
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. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)