diff mbox series

[SAMPLE] microblaze: kernel: use string choices helper

Message ID 8734ftpmku.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New
Headers show
Series [SAMPLE] microblaze: kernel: use string choices helper | expand

Commit Message

Kuninori Morimoto March 4, 2025, 2:16 a.m. UTC
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/microblaze/kernel/exceptions.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/arch/microblaze/kernel/exceptions.c b/arch/microblaze/kernel/exceptions.c
index fd153d5fab98..d287a324bdee 100644
--- a/arch/microblaze/kernel/exceptions.c
+++ b/arch/microblaze/kernel/exceptions.c
@@ -73,7 +73,7 @@  asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
 
 #if 0
 	pr_warn("Exception %02x in %s mode, FSR=%08x PC=%08x ESR=%08x\n",
-			type, user_mode(regs) ? "user" : "kernel", fsr,
+			type, str_user_kernel(user_mode(regs)), fsr,
 			(unsigned int) regs->pc, (unsigned int) regs->esr);
 #endif
 
@@ -138,7 +138,7 @@  asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
 	/* FIXME what to do in unexpected exception */
 		pr_warn("Unexpected exception %02x PC=%08x in %s mode\n",
 			type, (unsigned int) addr,
-			kernel_mode(regs) ? "kernel" : "user");
+			str_kernel_user(kernel_mode(regs)));
 	}
 	return;
 }