Patchwork powerpc: Fix output from show_regs

login
register
mail settings
Submitter Kumar Gala
Date June 19, 2009, 8:29 a.m.
Message ID <1245400195-4220-1-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/28905/
State Accepted
Commit a2367194183d6ab6b05e5d7d9b40db6ba48afc06
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Kumar Gala - June 19, 2009, 8:29 a.m.
For some reason we've had an explicit KERN_INFO for GPR dumps.  With
recent changes we get output like:

<6>GPR00: 00000000 ef855eb0 ef858000 00000001 000000d0 f1000000 ffbc8000 ffffffff

The KERN_INFO is causing the <6>.  Don't see any reason to keep it
around.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 3e7135b..892a9f2 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -528,7 +528,7 @@  void show_regs(struct pt_regs * regs)
 
 	for (i = 0;  i < 32;  i++) {
 		if ((i % REGS_PER_LINE) == 0)
-			printk("\n" KERN_INFO "GPR%02d: ", i);
+			printk("\nGPR%02d: ", i);
 		printk(REG " ", regs->gpr[i]);
 		if (i == LAST_VOLATILE && !FULL_REGS(regs))
 			break;