ktr: prevent possible footshooting with KTR_ENTRIES and KTR_BOOT_ENTRIES

Suggested by:	adrian
MFC after:	14 days
X-MFC with:	r246282
This commit is contained in:
Andriy Gapon 2013-02-04 21:58:57 +00:00
parent f85ed12497
commit c8199bc955
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246331

View File

@ -198,7 +198,7 @@ SYSCTL_PROC(_debug_ktr, OID_AUTO, mask, CTLTYPE_UINT|CTLFLAG_RW, 0, 0,
sysctl_debug_ktr_mask, "IU",
"Bitmask of KTR event classes for which logging is enabled");
#if KTR_ENTRIES != KTR_BOOT_ENTRIES
#if KTR_ENTRIES > KTR_BOOT_ENTRIES
/*
* A simplified version of sysctl_debug_ktr_entries.
* No need to care about SMP, scheduling, etc.