summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/acpidump/acpi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index c8d7177..0ff7918 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -479,7 +479,8 @@ acpi_print_fadt(struct FADTbody *fadt)
sep = '{';
PRINTFLAG(fadt->iapc_boot_arch, LEGACY_DEV);
PRINTFLAG(fadt->iapc_boot_arch, 8042);
- printf("}\n");
+ if (fadt->iapc_boot_arch != 0)
+ printf("}\n");
printf("\tFlags=");
sep = '{';
@@ -497,7 +498,8 @@ acpi_print_fadt(struct FADTbody *fadt)
PRINTFLAG(fadt->flags, SEALED_CASE);
PRINTFLAG(fadt->flags, HEADLESS);
PRINTFLAG(fadt->flags, CPU_SW_SLP);
- printf("}\n");
+ if (fadt->flags != 0)
+ printf("}\n");
#undef PRINTFLAG
OpenPOWER on IntegriCloud