git: c457983b9613 - stable/12 - x86: Correctly report unexpected cache level

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sat, 19 Mar 2022 00:31:44 UTC
The branch stable/12 has been updated by emaste:

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

commit c457983b9613de2c808bc1157c35e0d7e2305aee
Author:     Zhenlei Huang <zlei.huang@gmail.com>
AuthorDate: 2022-03-16 20:28:58 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-03-19 00:31:29 +0000

    x86: Correctly report unexpected cache level
    
    Reviewed by:    rpokala, emaste
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D34577
    
    (cherry picked from commit ba46c6c4b7fa76d9283294cb6d9ebadbd95f67ca)
---
 sys/x86/x86/mp_x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c
index 57cea8c7a07a..55fe86a03089 100644
--- a/sys/x86/x86/mp_x86.c
+++ b/sys/x86/x86/mp_x86.c
@@ -200,7 +200,7 @@ add_deterministic_cache(int type, int level, int share_count)
 	if (type == 2) /* ignore instruction cache */
 		return (1);
 	if (level == 0 || level > MAX_CACHE_LEVELS) {
-		printf("unexpected cache level %d\n", type);
+		printf("unexpected cache level %d\n", level);
 		return (1);
 	}