Add enable_disable() helper

In this patch "enabled" and "disabled" is used exclusively, but "enable" and
"disable" forms are need for the following patch.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-07-31 22:48:22 -04:00
parent 0fbd465f41
commit 2d37cd5356
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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)