aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-08-04 18:56:15 +0000
committerEd Maste <emaste@FreeBSD.org>2023-08-15 13:38:29 +0000
commitfe5d8f7a64e9530bd6e220a08ed4394c5761b837 (patch)
tree9d4b07671f0168c45d4550e0bbe8b7b6e085d17e
parent33a23ef2878fe525700983fb754f6f9f9f8fc4b7 (diff)
downloadsrc-fe5d8f7a64e9530bd6e220a08ed4394c5761b837.tar.gz
src-fe5d8f7a64e9530bd6e220a08ed4394c5761b837.zip
x86: include CPU ID in "Invalid CPU ID" panic
Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/x86/x86/intr_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/x86/intr_machdep.c b/sys/x86/x86/intr_machdep.c
index 524258ef7dc8..7fe5a99dfc00 100644
--- a/sys/x86/x86/intr_machdep.c
+++ b/sys/x86/x86/intr_machdep.c
@@ -639,7 +639,7 @@ intr_add_cpu(u_int cpu)
{
if (cpu >= MAXCPU)
- panic("%s: Invalid CPU ID", __func__);
+ panic("%s: Invalid CPU ID %u", __func__, cpu);
if (bootverbose)
printf("INTR: Adding local APIC %d as a target\n",
cpu_apic_ids[cpu]);