git: 0b272e0926b3 - main - madt: print CPU APIC ID as signed int

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 10 May 2024 19:20:46 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b272e0926b3c4b1961131119e22ed5791be7230

commit 0b272e0926b3c4b1961131119e22ed5791be7230
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-05-10 18:57:22 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-05-10 19:20:40 +0000

    madt: print CPU APIC ID as signed int
    
    Instead of printing something like "MADT: Found CPU APIC ID 4294967295
    ACPI ID 512: disabled" print the APIC ID as a singed int for a more
    user-friendly -1.
    
    Reviewed by:    jhb
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45158
---
 sys/x86/acpica/madt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c
index c6358ad7e847..a593028ffb5a 100644
--- a/sys/x86/acpica/madt.c
+++ b/sys/x86/acpica/madt.c
@@ -368,8 +368,8 @@ madt_add_cpu(u_int acpi_id, u_int apic_id, u_int flags)
 	 * MP code figure out which CPU is the BSP on its own.
 	 */
 	if (bootverbose)
-		printf("MADT: Found CPU APIC ID %u ACPI ID %u: %s\n",
-		    apic_id, acpi_id, flags & ACPI_MADT_ENABLED ?
+		printf("MADT: Found CPU APIC ID %d ACPI ID %u: %s\n",
+		    (int)apic_id, acpi_id, flags & ACPI_MADT_ENABLED ?
 		    "enabled" : "disabled");
 	if (!(flags & ACPI_MADT_ENABLED))
 		return;