diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2017-09-28 06:55:08 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2017-09-28 06:55:08 +0000 |
| commit | f17a1bcd467dfbdd55ee48e0d1ca5ecdb5e8e99a (patch) | |
| tree | 7962a4fe58fb21cbc4f92d8c44cedac93b775e30 /usr.sbin/acpitools | |
| parent | 830b91a9f23c6b7f8a93cc97dae8ed6d312535b8 (diff) | |
Print ACPI_HEST_GHES_ASSIST flag (ACPI 6.2).
Diffstat (limited to 'usr.sbin/acpitools')
| -rw-r--r-- | usr.sbin/acpitools/acpidump/acpi.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/usr.sbin/acpitools/acpidump/acpi.c b/usr.sbin/acpitools/acpidump/acpi.c index 2c604247e27..8f503741b48 100644 --- a/usr.sbin/acpitools/acpidump/acpi.c +++ b/usr.sbin/acpitools/acpidump/acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.28 2017/09/27 08:14:18 msaitoh Exp $ */ +/* $NetBSD: acpi.c,v 1.29 2017/09/28 06:55:08 msaitoh Exp $ */ /*- * Copyright (c) 1998 Doug Rabson @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: acpi.c,v 1.28 2017/09/27 08:14:18 msaitoh Exp $"); +__RCSID("$NetBSD: acpi.c,v 1.29 2017/09/28 06:55:08 msaitoh Exp $"); #include <sys/param.h> #include <sys/endian.h> @@ -390,12 +390,17 @@ acpi_print_hest_header(ACPI_HEST_HEADER *hest) static void acpi_print_hest_aer_common(ACPI_HEST_AER_COMMON *data) { - printf("\tFlags={ "); - if (data->Flags & ACPI_HEST_FIRMWARE_FIRST) - printf("FIRMWARE_FIRST"); - if (data->Flags & ACPI_HEST_GLOBAL) - printf("GLOBAL"); - printf(" }\n"); + +#define PRINTFLAG(var, flag) printflag((var), ACPI_HEST_## flag, #flag) + + printf("\tFlags="); + PRINTFLAG(data->Flags, FIRMWARE_FIRST); + PRINTFLAG(data->Flags, GLOBAL); + PRINTFLAG(data->Flags, GHES_ASSIST); + PRINTFLAG_END(); + +#undef PRINTFLAG + printf("\tEnabled={ %s ", data->Flags ? "YES" : "NO"); if (data->Flags & ACPI_HEST_FIRMWARE_FIRST) printf("(ignored) "); |
