[PATCH v2 0/2] efi_loader: show drive details in the boot menu

Padmarao Begari <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
The EFI boot menu only shows entries like "usb 0" or "scsi 0", which is
of little help when several drives of the same type are attached. Append
the capacity and the vendor/product strings of the drive so that the
entries read:

    usb 0 (29.7 GiB, Generic Ultra HS-COMBO)
    usb 1 (28.6 GiB, USB SanDisk 3.2Gen1)
    scsi 0 (1 GiB, MICRON MT064GBCAV1U31AA)

Changes in v2:
- Address Heinrich Schuchardt review comments
- Reuse the print_size() formatting
- Add a new snprint_size() helper
- Build the suffix with a single snprintf() instead of a chain of
  strlcat() calls.
- Limit the name to 64 instead of 128 characters.
- Document the limitation in the commit message.

Padmarao Begari (2):
  lib: display_options: add snprint_size()
  efi_loader: expand disk device names with drive details

 include/display_options.h | 18 +++++++++++
 include/efi_loader.h      | 12 +++++--
 lib/display_options.c     | 22 ++++++++-----
 lib/efi_loader/efi_disk.c | 66 ++++++++++++++++++++++++++++++++++++++-
 4 files changed, 107 insertions(+), 11 deletions(-)

-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.