From: Mike Crowe <mac@mcrowe.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: Add severity levels to printk statements during kernel setup.
Date: Sat, 26 Jul 2008 13:59:25 +0100 [thread overview]
Message-ID: <20080726125925.GB32426@mcrowe.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0807252002490.11082@anakin>
On Fri, 25 Jul 2008, I wrote:
>> --- a/arch/mips/kernel/setup.c
>> +++ b/arch/mips/kernel/setup.c
>> @@ -78,7 +78,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type)
>>
>> /* Sanity check */
>> if (start + size < start) {
>> - printk("Trying to add an invalid memory region, skipped\n");
>> + printk(KERN_WARNING "Trying to add an invalid memory region, skipped\n");
On Fri, Jul 25, 2008 at 08:04:57PM +0200, Geert Uytterhoeven wrote:
> Why not convert to pr_warning(), while you're at it?
I can do. I'm just a bit behind the times. :-)
Should I use pr_{warning,err,info} everywhere rather than printk? Is
it worth fixing up the other calls to printk that I didn't need to
"fix"?
>> @@ -221,7 +221,7 @@ static void __init finalize_initrd(void)
>> goto disable;
>> }
>> if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) {
>> - printk("Initrd extends beyond end of memory");
>> + printk(KERN_ERR "Initrd extends beyond end of memory");
> ^
> There's no newline here, so...
>
>> goto disable;
>> }
>>
>> @@ -232,7 +232,7 @@ static void __init finalize_initrd(void)
>> initrd_start, size);
>> return;
>> disable:
>> - printk(" - disabling initrd\n");
>> + printk(KERN_ERR " - disabling initrd\n");
> ^^^^^^^^
> ... probably this should be KERN_CONT.
> Note that I didn't check the other paths to get here.
Well spotted. I thought I'd checked those but obviously not carefully enough. I shall try again.
Thanks.
Mike.
next prev parent reply other threads:[~2008-07-26 12:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 13:44 [PATCH] MIPS: Add severity levels to printk statements during kernel setup Mike Crowe
2008-07-25 18:04 ` Geert Uytterhoeven
2008-07-26 12:59 ` Mike Crowe [this message]
2008-07-26 13:19 ` Geert Uytterhoeven
2008-07-28 12:12 ` [PATCH] MIPS: Convert printk statements during kernel setup to use severity levels Mike Crowe
2008-07-30 13:49 ` Ralf Baechle
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=20080726125925.GB32426@mcrowe.com \
--to=mac@mcrowe.com \
--cc=geert@linux-m68k.org \
--cc=linux-mips@linux-mips.org \
/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