Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2017 06:43:08 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r323137 - stable/11/usr.sbin/acpi/acpidump
Message-ID:  <201709030643.v836h8o9035336@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709030643.v836h8o9035336>