setup: do not stop printing all boot entries, if the boot order has non-existing...
authorKay Sievers <kay@vrfy.org>
Wed, 6 Mar 2013 20:46:43 +0000 (21:46 +0100)
committerKay Sievers <kay@vrfy.org>
Wed, 6 Mar 2013 20:48:37 +0000 (21:48 +0100)
src/setup/setup.c

index 2cbcc30..2efde33 100644 (file)
@@ -395,7 +395,7 @@ static int print_efi_option(uint16_t id) {
 
         r = efi_get_boot_option(id, &title, partition, &path);
         if (r < 0) {
-                fprintf(stderr, "Failed to read EFI boot entry %i.\n", id);
+                fprintf(stderr, "Failed to read EFI boot entry Boot%04X.\n", id);
                 goto finish;
         }
 
@@ -447,11 +447,8 @@ static int status_variables(void) {
                 goto finish;
         }
 
-        for (i = 0; i < n_order; i++) {
-                r = print_efi_option(order[i]);
-                if (r < 0)
-                        goto finish;
-        }
+        for (i = 0; i < n_order; i++)
+                print_efi_option(order[i]);
 
         if (n_order == n_options)
                 goto finish;
@@ -471,9 +468,7 @@ static int status_variables(void) {
                 if (found)
                         continue;
 
-                r = print_efi_option(options[i]);
-                if (r < 0)
-                        goto finish;
+                print_efi_option(options[i]);
         }
 
         r = 0;