git: fe5d8f7a64e9 - main - x86: include CPU ID in "Invalid CPU ID" panic

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 15 Aug 2023 13:39:09 UTC
The branch main has been updated by emaste:

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

commit fe5d8f7a64e9530bd6e220a08ed4394c5761b837
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-08-04 18:56:15 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-08-15 13:38:29 +0000

    x86: include CPU ID in "Invalid CPU ID" panic
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/x86/x86/intr_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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]);