From owner-svn-src-stable@freebsd.org Sun Sep 3 06:43:09 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E57F2E1E4A8; Sun, 3 Sep 2017 06:43:09 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE5CD84A94; Sun, 3 Sep 2017 06:43:09 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v836h8UB035337; Sun, 3 Sep 2017 06:43:08 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v836h8o9035336; Sun, 3 Sep 2017 06:43:08 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201709030643.v836h8o9035336@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Sun, 3 Sep 2017 06:43:08 +0000 (UTC) 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 X-SVN-Group: stable-11 X-SVN-Commit-Author: mav X-SVN-Commit-Paths: stable/11/usr.sbin/acpi/acpidump X-SVN-Commit-Revision: 323137 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Sep 2017 06:43:10 -0000 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