From: Heinrich Schuchardt Date: Tue, 4 Oct 2022 08:09:52 +0000 (+0200) Subject: cmd/sbi: format RustSBI version number X-Git-Tag: v2025.01-rc5-pxa1908~1243^2~7 X-Git-Url: http://git.dujemihanovic.xyz/html/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=9487764e7e4f58a41fcfc4df7ae0db5fa4e4ffd8;p=u-boot.git cmd/sbi: format RustSBI version number 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 Reviewed-by: Rick Chen --- 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,