git: f877ca16c945 - stable/13 - x86: Correctly report unexpected cache level

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

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

commit f877ca16c9457cb3611bbb53bf84b4859d0c07cc
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:00 +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 64cf276614dc..4854331af17c 100644
--- a/sys/x86/x86/mp_x86.c
+++ b/sys/x86/x86/mp_x86.c
@@ -214,7 +214,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);
 	}