All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney.cavm@gmail.com>
To: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions
Date: Mon, 10 Nov 2014 08:42:36 -0800	[thread overview]
Message-ID: <5460EAFC.8020004@gmail.com> (raw)
In-Reply-To: <1415636404-11979-2-git-send-email-markos.chandras@imgtec.com>

On 11/10/2014 08:20 AM, Markos Chandras wrote:
> printk should not be used without a KERN_ facility level
>
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> ---
>   arch/mips/kernel/traps.c | 12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
> index 22b19c275044..51fa5c3aa4fe 100644
> --- a/arch/mips/kernel/traps.c
> +++ b/arch/mips/kernel/traps.c
> @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs)
>   	show_regs(regs);
>
>   	if (multi_match) {
> -		printk("Index	: %0x\n", read_c0_index());
> -		printk("Pagemask: %0x\n", read_c0_pagemask());
> -		printk("EntryHi : %0*lx\n", field, read_c0_entryhi());
> -		printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
> -		printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
> -		printk("\n");
> +		pr_info("Index	: %0x\n", read_c0_index());
> +		pr_info("Pagemask: %0x\n", read_c0_pagemask());
> +		pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi());
> +		pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
> +		pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
> +		pr_info("\n");

MachineCheck is a serious problem, If we change this at all, I would 
suggest pr_err() instead.

David Daney

>   		dump_tlb_all();
>   	}
>
>

  reply	other threads:[~2014-11-10 16:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-10 16:20 [PATCH 0/3] Machine Check exception improvements Markos Chandras
2014-11-10 16:20 ` Markos Chandras
2014-11-10 16:20 ` [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions Markos Chandras
2014-11-10 16:20   ` Markos Chandras
2014-11-10 16:42   ` David Daney [this message]
2014-11-11  9:42     ` Markos Chandras
2014-11-11  9:42       ` Markos Chandras
2014-11-12  9:22   ` [PATCH v2 1/3] MIPS: kernel: traps: Replace printk with pr_err " Markos Chandras
2014-11-12  9:22     ` Markos Chandras
2014-11-10 16:20 ` [PATCH 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception Markos Chandras
2014-11-10 16:20   ` Markos Chandras
2014-11-12  9:22   ` [PATCH v2 " Markos Chandras
2014-11-12  9:22     ` Markos Chandras
2014-11-10 16:20 ` [PATCH 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC Markos Chandras
2014-11-10 16:20   ` Markos Chandras
2014-11-12  9:23   ` [PATCH v2 " Markos Chandras
2014-11-12  9:23     ` Markos Chandras

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=5460EAFC.8020004@gmail.com \
    --to=ddaney.cavm@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=markos.chandras@imgtec.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.