Heinrich Schuchardt ca9d9263e5 boot: fix bootdev_list()
uclass_get_device_by_name() is meant to return 0 or a negative error code.
simple_itoa() cannot handle negative numbers.

This leads to output like:

    => bootdev list -p

    Seq  Probed  Status  Uclass    Name
    ---  ------  ------  --------  ------------------
      c   [   ]  18446744073709551614  spi_flash spi.bin@0.bootdev

Convert the status to a positive number. Now we get

    Seq  Probed  Status  Uclass    Name
    ---  ------  ------  --------  ------------------
      c   [   ]       2  spi_flash spi.bin@0.bootdev

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-08-02 12:05:57 -06:00
..
2023-08-02 12:05:57 -06:00
2023-07-14 12:54:51 -04:00
2021-11-11 19:01:56 -05:00
2023-07-14 12:54:51 -04:00
2022-01-19 18:11:34 +01:00
2021-11-11 19:01:56 -05:00
2021-11-11 19:01:56 -05:00
2021-11-11 19:01:56 -05:00
2023-07-21 22:07:46 -04:00
2023-07-14 12:54:51 -04:00
2023-03-02 17:45:58 -05:00
2022-08-26 16:32:59 -06:00