mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Only print an end '}' if the field was non-zero (i.e. there were some flags
to print).
This commit is contained in:
parent
be8dca590c
commit
69a9febdc2
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue