[PATCH v2 1/3] cmd/sbi: format RustSBI version number

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Oct 4 10:09:52 CEST 2022


The SBI command can print out the version number of the SBI implementation.
Choose the correct output format for RustSBI.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Reviewed-by: Rick Chen <rick at andestech.com>
---
v2:
	remove spurious '+' from inserted line
---
 cmd/riscv/sbi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c
index 522f502435..9bbe7d4b90 100644
--- a/cmd/riscv/sbi.c
+++ b/cmd/riscv/sbi.c
@@ -74,6 +74,7 @@ static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc,
 					       vers >> 16, vers & 0xffff);
 					break;
 				case 3: /* KVM */
+				case 4: /* RustSBI */
 					printf("%ld.%ld.%ld",
 					       vers >> 16,
 					       (vers >> 8) & 0xff,
-- 
2.37.2



More information about the U-Boot mailing list