x86: Correctly report unexpected cache level

Reviewed by:	rpokala, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D34577
This commit is contained in:
Zhenlei Huang 2022-03-16 16:28:58 -04:00 committed by Ed Maste
parent a693d17b99
commit ba46c6c4b7

View File

@ -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);
}