]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: make boot entry id logged in hex
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Nov 2022 05:36:01 +0000 (14:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Nov 2022 05:36:09 +0000 (14:36 +0900)
To make consistent with the printed boot id below and other tools e.g.
efibootmgr.

src/boot/bootctl.c

index 79b26765373c6d5d4ef5d879d3e6feb40c6d8d72..b7af60c2c6ac8d51b81b81d0eef001eb380b2064 100644 (file)
@@ -586,11 +586,11 @@ static int print_efi_option(uint16_t id, int *n_printed, bool in_order) {
 
         r = efi_get_boot_option(id, &title, &partition, &path, &active);
         if (r < 0)
-                return log_error_errno(r, "Failed to read boot option %u: %m", id);
+                return log_error_errno(r, "Failed to read boot option 0x%04X: %m", id);
 
         /* print only configured entries with partition information */
         if (!path || sd_id128_is_null(partition)) {
-                log_debug("Ignoring boot entry %u without partition information.", id);
+                log_debug("Ignoring boot entry 0x%04X without partition information.", id);
                 return 0;
         }