git: 92d0d6bb14d2 - main - Print DeviceHandle and PhysicalId in hex.

Alexander Motin mav at FreeBSD.org
Fri Feb 5 21:15:59 UTC 2021


The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=92d0d6bb14d24abea0786edf546af316ff4a2afe

commit 92d0d6bb14d24abea0786edf546af316ff4a2afe
Author:     Alexander Motin <mav at FreeBSD.org>
AuthorDate: 2021-02-05 21:13:55 +0000
Commit:     Alexander Motin <mav at FreeBSD.org>
CommitDate: 2021-02-05 21:15:53 +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
---
 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 2753fb26bdd9..adb5b968f441 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -1615,8 +1615,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);


More information about the dev-commits-src-all mailing list