diff mbox

powerpc: Append linux_banner to exception information in xmon.

Message ID 1448408261-30772-1-git-send-email-rashmicy@gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Rashmica Gupta Nov. 24, 2015, 11:37 p.m. UTC
Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e" command.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
---
 arch/powerpc/xmon/xmon.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Ellerman Nov. 25, 2015, 2:35 a.m. UTC | #1
Hi Rashmica,

Can you make your subject "powerpc/xmon: ...".

On Wed, 2015-11-25 at 10:37 +1100, Rashmica Gupta wrote:

> Currently if you are in xmon without an oops etc. to view the kernel version you have to type "d $linux_banner" - not necessarily obvious. As this is useful information, append to the output of "e"
> command.

This line should be word wrapped.

And can you include an example of the output in the change log?

cheers
diff mbox

Patch

diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index df05bd2fca07..6d3d9d031aea 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1528,6 +1528,8 @@  static void excprint(struct pt_regs *fp)
 
 	if (trap == 0x700)
 		print_bug_trap(fp);
+
+	printf(linux_banner);
 }
 
 static void prregs(struct pt_regs *fp)