Skip to contentSkip to conversation

riscv: cpu: Beautify the warning message

PATCH New Leo Yu-Chi Liang 1 participant 1 message Oct 29, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: cpu: Beautify the warning message

Add '\n' to the end of the warning message.

Besides, if we enable console record utility, missing the '\n' causes the console_record_readline fail to recognize the end of string.

---
 arch/riscv/cpu/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/cpu/cpu.c +1 -1
index 7cd1f5f0d44..c7023ca932f 100644
@@ -463,7 +463,7 @@ static void riscv_parse_isa_string(const char *isa)
 		switch (*ext) {
 		case 'x':
 		case 'X':
-			log_warning("Vendor extensions are ignored in riscv,isa. Use riscv,isa-extensions instead.");
+			log_warning("Vendor extensions are ignored in riscv,isa. Use riscv,isa-extensions instead.\n");
 			/*
 			 * To skip an extension, we find its end.
 			 * As multi-letter extensions must be split from other multi-letter
Signature · 1 line
2.34.1