All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Johan Hovold <jhovold@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages
Date: Tue, 30 Aug 2011 14:15:07 -0700	[thread overview]
Message-ID: <87ty8ymwis.fsf@ti.com> (raw)
In-Reply-To: <1314722897-25040-2-git-send-email-jhovold@gmail.com> (Johan Hovold's message of "Tue, 30 Aug 2011 18:48:17 +0200")

Johan Hovold <jhovold@gmail.com> writes:

> 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 <jhovold@gmail.com>

Thanks, queuing for v3.2 (branch: for_3.2/pm-cleanup)

Kevin

> ---
>  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;
>  }

WARNING: multiple messages have this Message-ID (diff)
From: khilman@ti.com (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages
Date: Tue, 30 Aug 2011 14:15:07 -0700	[thread overview]
Message-ID: <87ty8ymwis.fsf@ti.com> (raw)
In-Reply-To: <1314722897-25040-2-git-send-email-jhovold@gmail.com> (Johan Hovold's message of "Tue, 30 Aug 2011 18:48:17 +0200")

Johan Hovold <jhovold@gmail.com> writes:

> 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 <jhovold@gmail.com>

Thanks, queuing for v3.2 (branch: for_3.2/pm-cleanup)

Kevin

> ---
>  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;
>  }

  reply	other threads:[~2011-08-30 21:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 16:34 [PATCH 1/3] OMAP2+: pm: fix typos Johan Hovold
2011-08-09 16:34 ` [PATCH 2/3] OMAP2+: pm: clean up error messages Johan Hovold
2011-08-09 16:34 ` [PATCH 3/3] OMAP2+: voltage: " Johan Hovold
2011-08-29 21:15   ` Kevin Hilman
2011-08-30 16:52     ` Johan Hovold
2011-08-29 21:13 ` [PATCH 1/3] OMAP2+: pm: fix typos Kevin Hilman
2011-08-30 16:48   ` [PATCH 1/2 RESEND] " Johan Hovold
2011-08-30 16:48     ` Johan Hovold
2011-08-30 16:48     ` [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Johan Hovold
2011-08-30 16:48       ` Johan Hovold
2011-08-30 21:15       ` Kevin Hilman [this message]
2011-08-30 21:15         ` Kevin Hilman
2011-08-30 21:14     ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Kevin Hilman
2011-08-30 21:14       ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty8ymwis.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=jhovold@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.