Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: add "8<--- cut here ---" to kernel dumps

Add a "8<--- cut here ---" marker to kernel dumps to help users cut
the dump at the right place when emailing list, rather than cutting
off the first line which gives the reason for the dump.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

+4
+1
arch/arm/kernel/traps.c
··· 725 725 726 726 #ifdef CONFIG_DEBUG_USER 727 727 if (user_debug & UDBG_BADABORT) { 728 + pr_err("8<--- cut here ---\n"); 728 729 pr_err("[%d] %s: bad data abort: code %d instr 0x%08lx\n", 729 730 task_pid_nr(current), current->comm, code, instr); 730 731 dump_instr(KERN_ERR, regs);
+3
arch/arm/mm/fault.c
··· 142 142 * No handler, we'll have to terminate things with extreme prejudice. 143 143 */ 144 144 bust_spinlocks(1); 145 + pr_alert("8<--- cut here ---\n"); 145 146 pr_alert("Unable to handle kernel %s at virtual address %08lx\n", 146 147 (addr < PAGE_SIZE) ? "NULL pointer dereference" : 147 148 "paging request", addr); ··· 168 167 #ifdef CONFIG_DEBUG_USER 169 168 if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || 170 169 ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { 170 + pr_err("8<--- cut here ---\n"); 171 171 printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n", 172 172 tsk->comm, sig, addr, fsr); 173 173 show_pte(tsk->mm, addr); ··· 558 556 if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs)) 559 557 return; 560 558 559 + pr_alert("8<--- cut here ---\n"); 561 560 pr_alert("Unhandled fault: %s (0x%03x) at 0x%08lx\n", 562 561 inf->name, fsr, addr); 563 562 show_pte(current->mm, addr);