Skip to contentSkip to conversation

powerpc: Append linux_banner to exception information in xmon.

PATCH Superseded Rashmica Gupta 2 participants 2 messages Nov 24, 2015 – Nov 25, 2015 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Append linux_banner to exception information in xmon.

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.

---
 arch/powerpc/xmon/xmon.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/xmon/xmon.c +2 -0
index df05bd2fca07..6d3d9d031aea 100644
@@ -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)
Signature · 1 line
2.5.0
#1 lore raw

Hi Rashmica,

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

Quoted 2 lines · Rashmica Gupta

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