bootctl: include error cause in log message

This commit is contained in:
Yu Watanabe
2018-10-20 00:52:45 +09:00
parent 011723a451
commit 7709ef3a70
+1 -1
View File
@@ -242,7 +242,7 @@ static int status_variables(void) {
if (n_order == -ENOENT)
n_order = 0;
else if (n_order < 0)
return log_error_errno(n_order, "Failed to read EFI boot order.");
return log_error_errno(n_order, "Failed to read EFI boot order: %m");
/* print entries in BootOrder first */
printf("Boot Loaders Listed in EFI Variables:\n");