[patch] add loglevel to a few printk's in arch/m32r/kernel/ptrace.c
From: Jesper Juhl (juhl-lkml_at_dif.dk)
Date: 12/31/04
- Previous message: Coywolf Qi Hunt: "Re: Linux 2.6.10-ac2"
- Next in thread: Jesper Juhl: "Re: [patch] add loglevel to a few printk's in arch/m32r/kernel/ptrace.c"
- Reply: Jesper Juhl: "Re: [patch] add loglevel to a few printk's in arch/m32r/kernel/ptrace.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Dec 2004 03:13:20 +0100 (CET) To: Hirokazu Takata <takata@linux-m32r.org>
Hi, small patch below to add loglevel to a few printk's in arch/m32r/kernel/ptrace.c .
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
diff -up linux-2.6.10-bk2-orig/arch/m32r/kernel/ptrace.c linux-2.6.10-bk2/arch/m32r/kernel/ptrace.c
--- linux-2.6.10-bk2-orig/arch/m32r/kernel/ptrace.c 2004-12-24 22:35:28.000000000 +0100
+++ linux-2.6.10-bk2/arch/m32r/kernel/ptrace.c 2004-12-31 03:09:28.000000000 +0100
@@ -451,7 +451,7 @@ register_debug_trap(struct task_struct *
unsigned long addr = next_pc & ~3;
if (p->nr_trap != 0) {
- printk("kernel BUG at %s %d: p->nr_trap = %d\n",
+ printk("KERN_ERR kernel BUG at %s %d: p->nr_trap = %d\n",
__FILE__, __LINE__, p->nr_trap);
return -1;
}
@@ -585,18 +585,18 @@ embed_debug_trap_for_signal(struct task_
pc = get_stack_long(child, PT_BPC);
ret = access_process_vm(child, pc&~3, &insn, sizeof(insn), 0);
if (ret != sizeof(insn)) {
- printk("kernel BUG at %s %d: access_process_vm returns %d\n",
+ printk(KERN_ERR "kernel BUG at %s %d: access_process_vm returns %d\n",
__FILE__, __LINE__, ret);
return;
}
compute_next_pc(insn, pc, &next_pc, child);
if (next_pc & 0x80000000) {
- printk("kernel BUG at %s %d: next_pc = 0x%08x\n",
+ printk(KERN_ERR "kernel BUG at %s %d: next_pc = 0x%08x\n",
__FILE__, __LINE__, (int)next_pc);
return;
}
if (embed_debug_trap(child, next_pc)) {
- printk("kernel BUG at %s %d: embed_debug_trap error\n",
+ printk(KERN_ERR "kernel BUG at %s %d: embed_debug_trap error\n",
__FILE__, __LINE__);
return;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Coywolf Qi Hunt: "Re: Linux 2.6.10-ac2"
- Next in thread: Jesper Juhl: "Re: [patch] add loglevel to a few printk's in arch/m32r/kernel/ptrace.c"
- Reply: Jesper Juhl: "Re: [patch] add loglevel to a few printk's in arch/m32r/kernel/ptrace.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
... I think the patch should be included in the official kernel ... send the line
"unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/
... More majordomo info at http://vger.kernel.org/majordomo-info.html ... (Linux-Kernel) - [2.6 patch] cdrom.c: make several functions static (fwd)
... The patch forwarded below still applies and compiles against ... send the line
"unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/
... There had been need of rain for many days. ... (Linux-Kernel) - [2.6 patch] some parport_pc.c cleanups (fwd)
... The patch forwarded below still applies and compiles against ... extern struct
parport *parport_pc_probe_port (unsigned long base, ... send the line "unsubscribe linux-kernel"
in ... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - RE: kernel BUG at kernel/timer.c:370!
... Subject: kernel BUG at kernel/timer.c:370! ... Could you please apply the below
patch, wait for the problem to reoccur, ... Please read the FAQ at http://www.tux.org/lkml/
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [2.4 patch] fix a compile warning in tipar.c (fwd)
... [2.4 patch] fix a compile warning in tipar.c ... send the line "unsubscribe
linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel)