Commit 7836b827 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Add kernel version to oops.

From: Anton Blanchard <anton@samba.org>

Add kernel version to oops.
parent 98102bc1
......@@ -34,6 +34,7 @@
#include <linux/prctl.h>
#include <linux/ptrace.h>
#include <linux/kallsyms.h>
#include <linux/version.h>
#include <asm/pgtable.h>
#include <asm/uaccess.h>
......@@ -193,8 +194,8 @@ void show_regs(struct pt_regs * regs)
printk("NIP: %016lX XER: %016lX LR: %016lX\n",
regs->nip, regs->xer, regs->link);
printk("REGS: %p TRAP: %04lx %s\n",
regs, regs->trap, print_tainted());
printk("REGS: %p TRAP: %04lx %s (%s)\n",
regs, regs->trap, print_tainted(), UTS_RELEASE);
printk("MSR: %016lx EE: %01x PR: %01x FP: %01x ME: %01x IR/DR: %01x%01x\n",
regs->msr, regs->msr&MSR_EE ? 1 : 0, regs->msr&MSR_PR ? 1 : 0,
regs->msr & MSR_FP ? 1 : 0,regs->msr&MSR_ME ? 1 : 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment