Skip to content

Commit 1284579

Browse files
committed
bugs/powerpc: Concatenate 'cond_str' with '__FILE__' in BUG_ENTRY(), to extend WARN_ON/BUG_ON output
Extend WARN_ON and BUG_ON style output from: WARNING: CPU: 0 PID: 0 at kernel/sched/core.c:8511 sched_init+0x20/0x410 to: WARNING: CPU: 0 PID: 0 at [idx < 0 && ptr] kernel/sched/core.c:8511 sched_init+0x20/0x410 Note that the output will be further reorganized later in this series. Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Naveen N Rao <naveen@kernel.org> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: linux-arch@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Link: https://lore.kernel.org/r/20250515124644.2958810-8-mingo@kernel.org
1 parent 1c59c2b commit 1284579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/powerpc/include/asm

arch/powerpc/include/asm/bug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
__asm__ __volatile__( \
5656
"1: " insn "\n" \
5757
_EMIT_BUG_ENTRY \
58-
: : "i" (__FILE__), "i" (__LINE__), \
58+
: : "i" (WARN_CONDITION_STR(cond_str) __FILE__), "i" (__LINE__), \
5959
"i" (flags), \
6060
"i" (sizeof(struct bug_entry)), \
6161
##__VA_ARGS__)

0 commit comments

Comments
 (0)