Only print an end '}' if the field was non-zero (i.e. there were some flags

to print).
This commit is contained in:
Nate Lawson 2003-09-21 03:51:48 +00:00
parent be8dca590c
commit 69a9febdc2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120309

View File

@ -479,6 +479,7 @@ acpi_print_fadt(struct FADTbody *fadt)
sep = '{';
PRINTFLAG(fadt->iapc_boot_arch, LEGACY_DEV);
PRINTFLAG(fadt->iapc_boot_arch, 8042);
if (fadt->iapc_boot_arch != 0)
printf("}\n");
printf("\tFlags=");
@ -497,6 +498,7 @@ acpi_print_fadt(struct FADTbody *fadt)
PRINTFLAG(fadt->flags, SEALED_CASE);
PRINTFLAG(fadt->flags, HEADLESS);
PRINTFLAG(fadt->flags, CPU_SW_SLP);
if (fadt->flags != 0)
printf("}\n");
#undef PRINTFLAG