From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: "Mark A. Greer" <mgreer@animalcreek.com>
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] arm: omap3: pm34xx.c: Replace printk() with appropriate pr_*()
Date: Fri, 16 Mar 2012 16:42:16 +0400 [thread overview]
Message-ID: <4F633528.1040305@ru.mvista.com> (raw)
In-Reply-To: <1331852833-4357-3-git-send-email-mgreer@animalcreek.com>
Hello.
On 16-03-2012 3:07, Mark A. Greer wrote:
> From: "Mark A. Greer" <mgreer@animalcreek.com>
> Currently, pm34xx.c has a mix of printk() and pr_*() statements
> so replace the printk() statements with the equivalent pr_*()
> statements.
> Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
> ---
> arch/arm/mach-omap2/pm34xx.c | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index af8d741..495e509 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
[...]
> @@ -463,7 +462,7 @@ restore:
> list_for_each_entry(pwrst,&pwrst_list, node) {
> state = pwrdm_read_prev_pwrst(pwrst->pwrdm);
> if (state> pwrst->next_state) {
> - printk(KERN_INFO "Powerdomain (%s) didn't enter "
> + pr_info("Powerdomain (%s) didn't enter "
> "target state %d\n",
Last line should have been realigned I think.
> pwrst->pwrdm->name, pwrst->next_state);
> ret = -1;
> @@ -471,9 +470,9 @@ restore:
> omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state);
> }
> if (ret)
> - printk(KERN_ERR "Could not enter target state in pm_suspend\n");
> + pr_err("Could not enter target state in pm_suspend\n");
> else
> - printk(KERN_INFO "Successfully put all powerdomains "
> + pr_info("Successfully put all powerdomains "
> "to target state\n");
Last line should have been realigned I think.
>
> return ret;
> @@ -865,7 +864,7 @@ static int __init omap3_pm_init(void)
> omap3_secure_ram_storage =
> kmalloc(0x803F, GFP_KERNEL);
> if (!omap3_secure_ram_storage)
> - printk(KERN_ERR "Memory allocation failed when"
> + pr_err("Memory allocation failed when"
BTW, space after "when" is missing here.
> "allocating for secure sram context\n");
Should have been realigned I think.
WBR, Sergei
next prev parent reply other threads:[~2012-03-16 12:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 23:07 arm: omap3: pm34xx.c: Some minor fixups Mark A. Greer
2012-03-15 23:07 ` [PATCH 1/2] arm: omap3: pm34xx.c: Fix omap3_pm_init() error out paths Mark A. Greer
2012-03-15 23:07 ` [PATCH 2/2] arm: omap3: pm34xx.c: Replace printk() with appropriate pr_*() Mark A. Greer
2012-03-16 12:42 ` Sergei Shtylyov [this message]
2012-03-16 18:02 ` Mark A. Greer
-- strict thread matches above, loose matches on Subject: below --
2012-03-15 16:20 arm: omap3: pm34xx.c: Some minor fixups Mark A. Greer
2012-03-15 16:20 ` [PATCH 2/2] arm: omap3: pm34xx.c: Replace printk() with appropriate pr_*() Mark A. Greer
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=4F633528.1040305@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=mgreer@animalcreek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox