Skip to content

Commit

Permalink
x86: unify printk strings in fault_32|64.c
Browse files Browse the repository at this point in the history
Adding the address of the faulting library missed removing a
line ending from X86_32.

Also update the shorter printk format for X86_32 in fault_64.c
to make it easier to se the remaining differences.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Jan 30, 2008
1 parent 27cc2a8 commit edcd811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/mm/fault_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code)
printk_ratelimit()) {
printk(
#ifdef CONFIG_X86_32
"%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx\n",
"%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx",
#else
"%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx\n",
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mm/fault_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
printk_ratelimit()) {
printk(
#ifdef CONFIG_X86_32
"%s%s[%d]: segfault at %08lx ip %08lx sp %08lx error %lx\n",
"%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx",
#else
"%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx\n",
#endif
Expand Down

0 comments on commit edcd811

Please sign in to comment.