cmd: sbi: Correctly display unknown implementation IDs
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 6 Mar 2024 14:44:02 +0000 (15:44 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 12 Mar 2024 06:36:13 +0000 (14:36 +0800)
commit4de6d37fa289a4da32a395e5cc97a6649b948144
treea040167c18726aadbddcdf3fd834616f61aa702a
parente6b7aeef3df206b9f2a47e715d643b735d18ae73
cmd: sbi: Correctly display unknown implementation IDs

For an unknown implementation ID an output like

    SBI 1.0Unknown implementation ID 16777216
    Extensions:
      sbi_set_timer
      ...

was shown. The number 16777216 is not the implementation ID.

* Show the correct number
* Use a hexadecimal output format
* Add a missing line feed

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
cmd/riscv/sbi.c