powerpc: Don't use --- in kernel logs
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 12 Feb 2025 07:40:48 +0000 (08:40 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 29 Apr 2025 06:11:38 +0000 (11:41 +0530)
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
arch/powerpc/kernel/process.c
arch/powerpc/xmon/xmon.c

index ef91f71e07c469384bb701243902376f7c4bc58b..855e0988650326c5f3e43ec1202b28294df8b026 100644 (file)
@@ -1000,7 +1000,7 @@ static inline void tm_reclaim_task(struct task_struct *tsk)
 
        WARN_ON(tm_suspend_disabled);
 
-       TM_DEBUG("--- tm_reclaim on pid %d (NIP=%lx, "
+       TM_DEBUG("---- tm_reclaim on pid %d (NIP=%lx, "
                 "ccr=%lx, msr=%lx, trap=%lx)\n",
                 tsk->pid, thr->regs->nip,
                 thr->regs->ccr, thr->regs->msr,
@@ -1008,7 +1008,7 @@ static inline void tm_reclaim_task(struct task_struct *tsk)
 
        tm_reclaim_thread(thr, TM_CAUSE_RESCHED);
 
-       TM_DEBUG("--- tm_reclaim on pid %d complete\n",
+       TM_DEBUG("---- tm_reclaim on pid %d complete\n",
                 tsk->pid);
 
 out_and_saveregs:
@@ -2367,14 +2367,14 @@ void __no_sanitize_address show_stack(struct task_struct *tsk,
                                (sp + STACK_INT_FRAME_REGS);
 
                        lr = regs->link;
-                       printk("%s--- interrupt: %lx at %pS\n",
+                       printk("%s---- interrupt: %lx at %pS\n",
                               loglvl, regs->trap, (void *)regs->nip);
 
                        // Detect the case of an empty pt_regs at the very base
                        // of the stack and suppress showing it in full.
                        if (!empty_user_regs(regs, tsk)) {
                                __show_regs(regs);
-                               printk("%s--- interrupt: %lx\n", loglvl, regs->trap);
+                               printk("%s---- interrupt: %lx\n", loglvl, regs->trap);
                        }
 
                        firstframe = 1;
index 88abffa8b54cca991cd4819c96298361ab223c74..cb3a3244ae6ff91b93cc22bcb8c571d2b34d9cd7 100644 (file)
@@ -1770,7 +1770,7 @@ static void xmon_show_stack(unsigned long sp, unsigned long lr,
                                       sp + STACK_INT_FRAME_REGS);
                                break;
                        }
-                       printf("--- Exception: %lx %s at ", regs.trap,
+                       printf("---- Exception: %lx %s at ", regs.trap,
                               getvecname(TRAP(&regs)));
                        pc = regs.nip;
                        lr = regs.link;