Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/acpitools/acpidump Part of FreeBSD r323045:



details:   https://anonhg.NetBSD.org/src/rev/917df07aef8d
branches:  trunk
changeset: 826387:917df07aef8d
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Aug 31 09:27:51 2017 +0000

description:
Part of FreeBSD r323045:
 - Print Valid Field in ACPI_NFIT_CONTROL_REGION with 0x%02x.
 - Fix Flags of ACPI_NFIT_CONTROL_REGION.

diffstat:

 usr.sbin/acpitools/acpidump/acpi.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r f43a230942b0 -r 917df07aef8d usr.sbin/acpitools/acpidump/acpi.c
--- a/usr.sbin/acpitools/acpidump/acpi.c        Thu Aug 31 09:27:28 2017 +0000
+++ b/usr.sbin/acpitools/acpidump/acpi.c        Thu Aug 31 09:27:51 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.19 2017/08/31 06:53:58 msaitoh Exp $ */
+/* $NetBSD: acpi.c,v 1.20 2017/08/31 09:27:51 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1998 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: acpi.c,v 1.19 2017/08/31 06:53:58 msaitoh Exp $");
+__RCSID("$NetBSD: acpi.c,v 1.20 2017/08/31 09:27:51 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/endian.h>
@@ -2043,7 +2043,7 @@
                    (u_int)ctlreg->SubsystemDeviceId);
                printf("\tSubsystemRevisionId=%u\n",
                    (u_int)ctlreg->SubsystemRevisionId);
-               printf("\tValidFields=%u\n", (u_int)ctlreg->ValidFields);
+               printf("\tValidFields=%02x\n", (u_int)ctlreg->ValidFields);
                printf("\tManufacturingLocation=%u\n",
                    (u_int)ctlreg->ManufacturingLocation);
                printf("\tManufacturingDate=%u\n",
@@ -2066,8 +2066,7 @@
 #define PRINTFLAG(var, flag)   printflag((var), ACPI_NFIT_## flag, #flag)
 
                printf("\tFlags=");
-               PRINTFLAG(ctlreg->Flags, ADD_ONLINE_ONLY);
-               PRINTFLAG(ctlreg->Flags, PROXIMITY_VALID);
+               PRINTFLAG(ctlreg->Flags, CONTROL_BUFFERED);
                PRINTFLAG_END();
 
 #undef PRINTFLAG



Home | Main Index | Thread Index | Old Index