Skip to content

Commit 542d353

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: compat: s/failed/unsupported if compat mode isn't supported
When compat mode isn't supported(I believe this is the most case now), kernel will emit somthing as: [ 0.050407] riscv: ELF compat mode failed This msg may make users think there's something wrong with the kernel itself, replace "failed" with "unsupported" to make it clear. In fact this is the real compat_mode_supported meaning. After the patch, the msg would be: [ 0.050407] riscv: ELF compat mode unsupported Signed-off-by: Jisheng Zhang <[email protected]> Acked-by: Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e623715 commit 542d353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int __init compat_mode_detect(void)
105105
csr_write(CSR_STATUS, tmp);
106106

107107
pr_info("riscv: ELF compat mode %s",
108-
compat_mode_supported ? "supported" : "failed");
108+
compat_mode_supported ? "supported" : "unsupported");
109109

110110
return 0;
111111
}

0 commit comments

Comments
 (0)