From patchwork Tue Aug 30 16:48:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 1113452 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7UGml35032345 for ; Tue, 30 Aug 2011 16:48:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898Ab1H3Qst (ORCPT ); Tue, 30 Aug 2011 12:48:49 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:65364 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296Ab1H3Qss (ORCPT ); Tue, 30 Aug 2011 12:48:48 -0400 Received: by mail-bw0-f46.google.com with SMTP id 11so5204748bke.19 for ; Tue, 30 Aug 2011 09:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Q0SYMqL6Tmg2m0/a/zs3mRKpU5WCFXEfm2FUZ0KfXDw=; b=CwcwM8JspZnAyflKL6IDv1zCUlKEU8Elz0rXHgm5d18bRR+ORHeGl+As3CK8CqOx1x BCxktYyZhe9fYhGrLXEOQcjTe5DjzOmqAg2wX+fqIGppTc7YoJ8ZaE/8oipKz3ePIszi pHfFGIqYWf7vysFwe1iR0jU5Q+dYOu8y/MO8k= Received: by 10.204.135.18 with SMTP id l18mr256908bkt.341.1314722928139; Tue, 30 Aug 2011 09:48:48 -0700 (PDT) Received: from xi (c83-249-240-82.bredband.comhem.se [83.249.240.82]) by mx.google.com with ESMTPS id b17sm69801bkd.32.2011.08.30.09.48.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Aug 2011 09:48:47 -0700 (PDT) Received: from johan by xi with local (Exim 4.76) (envelope-from ) id 1QyRUT-0006XE-P0; Tue, 30 Aug 2011 18:48:45 +0200 From: Johan Hovold To: Kevin Hilman Cc: Tony Lindgren , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Johan Hovold Subject: [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Date: Tue, 30 Aug 2011 18:48:17 +0200 Message-Id: <1314722897-25040-2-git-send-email-jhovold@gmail.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1314722897-25040-1-git-send-email-jhovold@gmail.com> References: <87r543rkdk.fsf@ti.com> <1314722897-25040-1-git-send-email-jhovold@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 30 Aug 2011 16:48:49 +0000 (UTC) Replace all printks with pr_err. Clean up error messages by adding missing whitespace, fixing capitalisations, removing double newlines, and reducing verbosity. Signed-off-by: Johan Hovold --- arch/arm/mach-omap2/pm.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index fd77cf4..3837818 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -137,8 +137,8 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state) ret = pwrdm_set_next_pwrst(pwrdm, state); if (ret) { - printk(KERN_ERR "Unable to set state of powerdomain: %s\n", - pwrdm->name); + pr_err("%s: unable to set state of powerdomain: %s\n", + __func__, pwrdm->name); goto err; } @@ -179,21 +179,20 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, unsigned long freq, bootup_volt; if (!vdd_name || !clk_name || !dev) { - printk(KERN_ERR "%s: Invalid parameters!\n", __func__); + pr_err("%s: invalid parameters\n", __func__); goto exit; } voltdm = omap_voltage_domain_lookup(vdd_name); if (IS_ERR(voltdm)) { - printk(KERN_ERR "%s: Unable to get vdd pointer for vdd_%s\n", + pr_err("%s: unable to get vdd pointer for vdd_%s\n", __func__, vdd_name); goto exit; } clk = clk_get(NULL, clk_name); if (IS_ERR(clk)) { - printk(KERN_ERR "%s: unable to get clk %s\n", - __func__, clk_name); + pr_err("%s: unable to get clk %s\n", __func__, clk_name); goto exit; } @@ -202,14 +201,14 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, opp = opp_find_freq_ceil(dev, &freq); if (IS_ERR(opp)) { - printk(KERN_ERR "%s: unable to find boot up OPP for vdd_%s\n", + pr_err("%s: unable to find boot up OPP for vdd_%s\n", __func__, vdd_name); goto exit; } bootup_volt = opp_get_voltage(opp); if (!bootup_volt) { - printk(KERN_ERR "%s: unable to find voltage corresponding" + pr_err("%s: unable to find voltage corresponding " "to the bootup OPP for vdd_%s\n", __func__, vdd_name); goto exit; } @@ -218,8 +217,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, return 0; exit: - printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n", - __func__, vdd_name); + pr_err("%s: unable to set vdd_%s\n", __func__, vdd_name); return -EINVAL; }