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

powerpc: Don't use --- in kernel logs

When a kernel log containing --- at the start of a line is copied into
a patch message, 'git am' drops everything located after that ---.

Replace --- by ---- to avoid that.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/54a1f8d2c3fb5b95434039724c8c141052ae5cc0.1739346038.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Madhavan Srinivasan
b2f64cf1 882b25af

+5 -5
+4 -4
arch/powerpc/kernel/process.c
··· 1000 1000 1001 1001 WARN_ON(tm_suspend_disabled); 1002 1002 1003 - TM_DEBUG("--- tm_reclaim on pid %d (NIP=%lx, " 1003 + TM_DEBUG("---- tm_reclaim on pid %d (NIP=%lx, " 1004 1004 "ccr=%lx, msr=%lx, trap=%lx)\n", 1005 1005 tsk->pid, thr->regs->nip, 1006 1006 thr->regs->ccr, thr->regs->msr, ··· 1008 1008 1009 1009 tm_reclaim_thread(thr, TM_CAUSE_RESCHED); 1010 1010 1011 - TM_DEBUG("--- tm_reclaim on pid %d complete\n", 1011 + TM_DEBUG("---- tm_reclaim on pid %d complete\n", 1012 1012 tsk->pid); 1013 1013 1014 1014 out_and_saveregs: ··· 2367 2367 (sp + STACK_INT_FRAME_REGS); 2368 2368 2369 2369 lr = regs->link; 2370 - printk("%s--- interrupt: %lx at %pS\n", 2370 + printk("%s---- interrupt: %lx at %pS\n", 2371 2371 loglvl, regs->trap, (void *)regs->nip); 2372 2372 2373 2373 // Detect the case of an empty pt_regs at the very base 2374 2374 // of the stack and suppress showing it in full. 2375 2375 if (!empty_user_regs(regs, tsk)) { 2376 2376 __show_regs(regs); 2377 - printk("%s--- interrupt: %lx\n", loglvl, regs->trap); 2377 + printk("%s---- interrupt: %lx\n", loglvl, regs->trap); 2378 2378 } 2379 2379 2380 2380 firstframe = 1;
+1 -1
arch/powerpc/xmon/xmon.c
··· 1770 1770 sp + STACK_INT_FRAME_REGS); 1771 1771 break; 1772 1772 } 1773 - printf("--- Exception: %lx %s at ", regs.trap, 1773 + printf("---- Exception: %lx %s at ", regs.trap, 1774 1774 getvecname(TRAP(&regs))); 1775 1775 pc = regs.nip; 1776 1776 lr = regs.link;