SHA256
1
0
forked from pool/efibootmgr
efibootmgr/efibootmgr-0.6.0-fail-visibly.diff
Raymund Will 005b0540c9 - Integrate SLE11 patches. [bnc#830784]
o Print EFI status for failed '--create' as well.  [bnc#811767]
 o Fix '--bootorder' handling.  [bnc#810899]
 o Print EFI status in case of failure.  [bnc#811767]
- Update version number to 0.6.0.
- Stop '--write-signature' overwriting unique signature.
- Fix gcc warnings.

OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=11
2013-12-19 16:49:29 +00:00

25 lines
721 B
Diff

---
src/efibootmgr/efibootmgr.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/src/efibootmgr/efibootmgr.c
+++ b/src/efibootmgr/efibootmgr.c
@@ -275,6 +275,7 @@ make_boot_var(list_t *boot_list)
status = create_variable(&boot->var_data);
if (status != EFI_SUCCESS) {
+ fprintf (stderr,"\n\nrequested operation failed: status=%lx\n\n", status);
free(boot);
return NULL;
}
@@ -1133,6 +1134,9 @@ main(int argc, char **argv)
}
show_boot_order();
show_boot_vars();
+ } else if (ret > 1) {
+ /* only print efi_status_t values as others already have a message! */
+ fprintf (stderr,"\n\nrequested operation failed: status=%lx\n\n", ret);
}
}
free_dirents(boot_names, num_boot_names);