Signed-off-by: Kuninori Morimoto <[email protected]>
---
arch/microblaze/kernel/exceptions.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
}
--
2.43.0