arch/i386/kernel/kprobes.c
PATCH 1/1 arch/i386/kernel/kprobes.c
*--- linux-2.6.14-rc4.orig/arch/i386/kernel/kprobes.c 2005-10-11 01:19:19.000000000 +0000*
*+++ linux-2.6.14-rc4/arch/i386/kernel/kprobes.c 2005-10-16 22:42:30.000000000 +0000*
@@ -521,11 +521,11 @@ int __kprobes longjmp_break_handler(stru
if (®s->esp != jprobe_saved_esp) {
struct pt_regs *saved_regs container_of(jprobe_saved_esp, struct pt_regs, esp);
- printk("current esp %p does not match saved esp %p\n",
+ printk(KERN_WARN "current esp %p does not match saved esp %p\n",
®s->esp, jprobe_saved_esp);
- printk("Saved registers for jprobe %p\n", jp);
+ printk(KERN_INFO "Saved registers for jprobe %p\n", jp);
show_registers(saved_regs);
- printk("Current registers\n");
+ printk(KERN_INFO "Current registers\n");
show_registers(regs);
BUG();
}
Just a small patch this time. Hope it'll work.
Dinolinux
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 27 lines · On 16.10.2005 [22:51:09 +0000], [email protected] wrote:
Signed-off-by Anton Brondz <[email protected]>*---
linux-2.6.14-rc4.orig/arch/i386/kernel/kprobes.c2005-10-11
01:19:19.000000000 +0000*
*+++linux-2.6.14-rc4/arch/i386/kernel/kprobes.c2005-10-16
22:42:30.000000000 +0000*(quoted diff) +3
-3@@ -521,11 +521,11 @@ int __kprobes longjmp_break_handler(stru if (®s->esp != jprobe_saved_esp) { struct pt_regs *saved_regs = container_of(jprobe_saved_esp, struct pt_regs, esp); - printk("current esp %p does not match saved esp %p\n", + printk(KERN_WARN "current esp %p does not match saved esp %p\n", ®s->esp, jprobe_saved_esp); - printk("Saved registers for jprobe %p\n", jp); + printk(KERN_INFO "Saved registers for jprobe %p\n", jp); show_registers(saved_regs); - printk("Current registers\n"); + printk(KERN_INFO "Current registers\n");show_registers(regs); BUG(); }
Quoted 1 line
Just a small patch this time. Hope it'll work.
Your patches should always include a description of what they do. Your e-mails containing patches should always indicate what they are doing concisely in the subject line. It is not necessary, though, to give the exact file being modified, e.g. I would have simply put, as the subject, "kprobes: use appropriate KERN_* in printk".
Also, it's probably best to put your comments *before* the patch, not after.
Care to redo?
Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors