summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-24 14:12:58 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-31 22:48:22 -0400
commit2d37cd5356f666b399c5ae93ce77053f501d0e33 (patch)
tree56eb723c03cec414f8d415336ab014e4196d684d /src/boot
parent0fbd465f4138dd2c3c7428c23cae117a7b56568d (diff)
Add enable_disable() helper
In this patch "enabled" and "disabled" is used exclusively, but "enable" and "disable" forms are need for the following patch.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/bootctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index ff8c7a38dd..a7cdf92ed2 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -1094,7 +1094,7 @@ static int verb_status(int argc, char *argv[], void *userdata) {
if (r < 0)
log_warning_errno(r, "Failed to query secure boot status: %m");
else
- printf(" Secure Boot: %s\n", r ? "enabled" : "disabled");
+ printf(" Secure Boot: %sd\n", enable_disable(r));
r = is_efi_secure_boot_setup_mode();
if (r < 0)