From patchwork Wed May 18 12:25:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 68041 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2604690qge; Wed, 18 May 2016 05:26:09 -0700 (PDT) X-Received: by 10.98.19.151 with SMTP id 23mr10568530pft.62.1463574369134; Wed, 18 May 2016 05:26:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74si11901390pfp.87.2016.05.18.05.26.08; Wed, 18 May 2016 05:26:09 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208AbcERMZu (ORCPT + 29 others); Wed, 18 May 2016 08:25:50 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33565 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967AbcERMZs (ORCPT ); Wed, 18 May 2016 08:25:48 -0400 Received: by mail-pf0-f177.google.com with SMTP id 206so18344892pfu.0 for ; Wed, 18 May 2016 05:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Mz+XUFn6ZJWwv3M28b3ziTbMiAeY0tfKv3qOrznMmSc=; b=LnTlEKmp7KZRZuFAD6l7qw20XmoTmYJ6m/31GhRLDUIlzFI4LEEN5Sd7cW3mlWTG4n uAbZd2JbtxrbHvKYqWIna9l1k7vl0C/qy454cwLYI9O6oYVdtxxmhayjkRTZeu80FEAN rlwXl/V85c2rodYynXcqsz95uwcNvEbcLtv/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Mz+XUFn6ZJWwv3M28b3ziTbMiAeY0tfKv3qOrznMmSc=; b=Wrd1Dp1gyQuzY+9mP5XocIWQelSiRnvZjLX8jC8wCD78+KAqkkv9ImSNWw5e2vAbHK qCQFMOYniFswwW/Nta8YmQvXKKevRFNIGWBuGQp/RCBE19PIW3UBtbQ73+hQzU7hnKZb cfIg3AbFwS08yLHwEd/rr6uK/EuOsonRiHj1SLh3/WOzlvibUBPyNXB6GDpGmejJkdWO w7Bn1Ri331SoB7FbEyD3rpGQ/aEfwERp8C5FqADuem2DMdjCzjOXNtxn8g67DzX5jb2x 5evYtdqsyl6X91azYLkZxsF70grMADRVE8ly9nURRzi4SnD/TqjvyuWheXRkXZH+EIbm I4dA== X-Gm-Message-State: AOPr4FUVA5ah53AyXe7zPJSODQe+vkV4I4Gut983BOsjvMOwsHnGLwefYKrobJCpxASfZRp3 X-Received: by 10.98.23.211 with SMTP id 202mr10652389pfx.122.1463574347710; Wed, 18 May 2016 05:25:47 -0700 (PDT) Received: from localhost ([122.172.42.124]) by smtp.gmail.com with ESMTPSA id d6sm12073853pfj.75.2016.05.18.05.25.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2016 05:25:47 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Ingo Molnar , Peter Zijlstra Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , linux-kernel@vger.kernel.org Subject: [PATCH 3/6] cpufreq: schedutil: Improve prints messages with pr_fmt Date: Wed, 18 May 2016 17:55:28 +0530 Message-Id: <30cb533c2e24d22832cbc2953c51fa3cf60cd202.1463574213.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Prefix print messages with KBUILD_MODNAME, i.e 'cpufreq_schedutil: '. This helps to keep similar formatting for all the print messages particular to a file and identify those easily in kernel logs. Its already done this way for rest of the governors. Along with that, remove the (now) redundant bits from a print message. Signed-off-by: Viresh Kumar --- kernel/sched/cpufreq_schedutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.1.410.g6faf27b diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 154ae3a51e86..14c4aa25cc45 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -9,6 +9,8 @@ * published by the Free Software Foundation. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -388,7 +390,7 @@ static int sugov_init(struct cpufreq_policy *policy) mutex_unlock(&global_tunables_lock); sugov_policy_free(sg_policy); - pr_err("cpufreq: schedutil governor initialization failed (error %d)\n", ret); + pr_err("initialization failed (error %d)\n", ret); return ret; }