From: Yu Watanabe Date: Fri, 19 Oct 2018 15:52:45 +0000 (+0900) Subject: bootctl: include error cause in log message X-Git-Tag: v240~503^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7709ef3a70cc228997c93da1eeddb8db16d5906b;p=thirdparty%2Fsystemd.git bootctl: include error cause in log message --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index c97d21c2286..d1aee188eb7 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -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");