Skip to content

Commit

Permalink
madt: print CPU APIC ID as signed int
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emaste committed May 10, 2024
1 parent dd4d206 commit 0b272e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/x86/acpica/madt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b272e0

Please sign in to comment.