Probabilly defaulting to KTR_GEN is not the right decision when KTR_MASK

is not defined at all because KTR_GEN is still a valid class and some
traces may fit in. Default to 0, instead, and block any tracing.

As long as this is a POLA violation (some thirdy-part code, even if
that may be a questionable choice, could be rely on that feature) a
MFC possibility might be carefully evaluated.

Sponsored by:	Sandvine Incorporated
This commit is contained in:
attilio 2010-07-21 10:14:04 +00:00
parent 929048ea54
commit 800d46f6e4

View File

@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#endif
#ifndef KTR_MASK
#define KTR_MASK (KTR_GEN)
#define KTR_MASK (0)
#endif
#ifndef KTR_CPUMASK