Skip to content

Commit e40de1f

Browse files
fenrus75xdevs23
authored andcommitted
print CPU that faults
print cpu number when we print a crash Signed-off-by: Simao Gomes Viana <[email protected]>
1 parent c404795 commit e40de1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/mm/fault.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,9 @@ show_signal_msg(struct pt_regs *regs, unsigned long error_code,
717717
if (!printk_ratelimit())
718718
return;
719719

720-
printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx",
720+
printk("%s%s[%d]: segfault at %lx ip %px sp %px error %lx cpu %i",
721721
loglvl, tsk->comm, task_pid_nr(tsk), address,
722-
(void *)regs->ip, (void *)regs->sp, error_code);
722+
(void *)regs->ip, (void *)regs->sp, error_code, raw_smp_processor_id());
723723

724724
print_vma_addr(KERN_CONT " in ", regs->ip);
725725

0 commit comments

Comments
 (0)