Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2021 04:04:16 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9525ccc84e33 - stable/12 - Print DeviceHandle and PhysicalId in hex.
Message-ID:  <202102120404.11C44GTH006797@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=9525ccc84e337f4261425fc8fbf9f0de18500a1b

commit 9525ccc84e337f4261425fc8fbf9f0de18500a1b
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-02-05 21:13:55 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-02-12 04:04:11 +0000

    Print DeviceHandle and PhysicalId in hex.
    
    The first is actually a bitfield.  The second is printed in hex by
    dmidecode, so uniformidy should be good.
    
    MFC after:      1 week
    
    (cherry picked from commit 92d0d6bb14d24abea0786edf546af316ff4a2afe)
---
 usr.sbin/acpi/acpidump/acpi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index 07edcf271fa2..06891fa09543 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -1609,8 +1609,8 @@ acpi_print_nfit(ACPI_NFIT_HEADER *nfit)
 		break;
 	case ACPI_NFIT_TYPE_MEMORY_MAP:
 		mmap = (ACPI_NFIT_MEMORY_MAP *)nfit;
-		printf("\tDeviceHandle=%u\n", (u_int)mmap->DeviceHandle);
-		printf("\tPhysicalId=%u\n", (u_int)mmap->PhysicalId);
+		printf("\tDeviceHandle=0x%x\n", (u_int)mmap->DeviceHandle);
+		printf("\tPhysicalId=0x%04x\n", (u_int)mmap->PhysicalId);
 		printf("\tRegionId=%u\n", (u_int)mmap->RegionId);
 		printf("\tRangeIndex=%u\n", (u_int)mmap->RangeIndex);
 		printf("\tRegionIndex=%u\n", (u_int)mmap->RegionIndex);



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