svn commit: r323137 - stable/11/usr.sbin/acpi/acpidump

Alexander Motin mav at FreeBSD.org
Sun Sep 3 06:43:10 UTC 2017


Author: mav
Date: Sun Sep  3 06:43:08 2017
New Revision: 323137
URL: https://svnweb.freebsd.org/changeset/base/323137

Log:
  MFC r323045: Fix flags field decoding in ACPI_NFIT_CONTROL_REGION.
  
  It looked like incomplete copy/paste, printing absolute garbage.
  
  While there, print ValidFields field ax hex, since it is a bitmask.

Modified:
  stable/11/usr.sbin/acpi/acpidump/acpi.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/acpi/acpidump/acpi.c
==============================================================================
--- stable/11/usr.sbin/acpi/acpidump/acpi.c	Sat Sep  2 23:39:51 2017	(r323136)
+++ stable/11/usr.sbin/acpi/acpidump/acpi.c	Sun Sep  3 06:43:08 2017	(r323137)
@@ -1277,7 +1277,7 @@ acpi_print_nfit(ACPI_NFIT_HEADER *nfit)
 		    (u_int)ctlreg->SubsystemDeviceId);
 		printf("\tSubsystemRevisionId=%u\n",
 		    (u_int)ctlreg->SubsystemRevisionId);
-		printf("\tValidFields=%u\n", (u_int)ctlreg->ValidFields);
+		printf("\tValidFields=0x%02x\n", (u_int)ctlreg->ValidFields);
 		printf("\tManufacturingLocation=%u\n",
 		    (u_int)ctlreg->ManufacturingLocation);
 		printf("\tManufacturingDate=%u\n",
@@ -1300,8 +1300,7 @@ acpi_print_nfit(ACPI_NFIT_HEADER *nfit)
 #define PRINTFLAG(var, flag)	printflag((var), ACPI_NFIT_## flag, #flag)
 
 		printf("\tFlags=");
-		PRINTFLAG(mmap->Flags, ADD_ONLINE_ONLY);
-		PRINTFLAG(mmap->Flags, PROXIMITY_VALID);
+		PRINTFLAG(ctlreg->Flags, CONTROL_BUFFERED);
 		PRINTFLAG_END();
 
 #undef PRINTFLAG


More information about the svn-src-stable-11 mailing list