]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/sbi: format RustSBI version number
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 4 Oct 2022 08:09:52 +0000 (10:09 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Oct 2022 07:22:15 +0000 (15:22 +0800)
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@canonical.com>
Reviewed-by: Rick Chen <rick@andestech.com>
cmd/riscv/sbi.c

index 522f502435ba51ccb5ecc4e478ed2b41c7e159fe..9bbe7d4b906db1cc171c141ba6cb537cba68b82f 100644 (file)
@@ -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,