提交 ea0e92a6 编写于 作者: R Russ Anderson 提交者: Tony Luck

[IA64] Increase severity of MCA recovery messages

The MCA recovery messages are currently KERN_DEBUG,
so they don't show up in /var/log/messages (by default).
Increase the severity to KERN_ERR, for the initial
message (and also add the physical address to this
message). Leave the successful isolation message as
KERN_DEBUG, but increase the severity when isolation
fails to KERN_CRIT.

[Russ' patch made these all KERN_CRIT]

Signed-off-by: Russ Anderson (rja@sgi.com)
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 d0b00484
...@@ -123,8 +123,9 @@ mca_page_isolate(unsigned long paddr) ...@@ -123,8 +123,9 @@ mca_page_isolate(unsigned long paddr)
void void
mca_handler_bh(unsigned long paddr) mca_handler_bh(unsigned long paddr)
{ {
printk(KERN_DEBUG "OS_MCA: process [pid: %d](%s) encounters MCA.\n", printk(KERN_ERR
current->pid, current->comm); "OS_MCA: process [pid: %d](%s) encounters MCA (paddr=%lx)\n",
current->pid, current->comm, paddr);
spin_lock(&mca_bh_lock); spin_lock(&mca_bh_lock);
switch (mca_page_isolate(paddr)) { switch (mca_page_isolate(paddr)) {
...@@ -132,7 +133,7 @@ mca_handler_bh(unsigned long paddr) ...@@ -132,7 +133,7 @@ mca_handler_bh(unsigned long paddr)
printk(KERN_DEBUG "Page isolation: ( %lx ) success.\n", paddr); printk(KERN_DEBUG "Page isolation: ( %lx ) success.\n", paddr);
break; break;
case ISOLATE_NG: case ISOLATE_NG:
printk(KERN_DEBUG "Page isolation: ( %lx ) failure.\n", paddr); printk(KERN_CRIT "Page isolation: ( %lx ) failure.\n", paddr);
break; break;
default: default:
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册