diff options
author | dfr <dfr@FreeBSD.org> | 2000-09-14 13:07:05 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-09-14 13:07:05 +0000 |
commit | fa323bab500d3be5a6e06a3d4ef11da85244efbe (patch) | |
tree | 0669a4ce3ac9bcefab183d72c56fd9ade3c63cc6 | |
parent | 012f504cc8b41e7eda914f521713dad517c6af22 (diff) | |
download | FreeBSD-src-fa323bab500d3be5a6e06a3d4ef11da85244efbe.zip FreeBSD-src-fa323bab500d3be5a6e06a3d4ef11da85244efbe.tar.gz |
Change "KTR_COMPILE & m" to "KTR_COMPILE & (m)" to allow more flexible
expressions for m.
-rw-r--r-- | sys/sys/ktr.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/sys/ktr.h b/sys/sys/ktr.h index 92413b2..d946772 100644 --- a/sys/sys/ktr.h +++ b/sys/sys/ktr.h @@ -163,42 +163,42 @@ extern struct ktr_entry ktr_buf[]; _ktrptr->ktr_cpu = _TR_CPU; #endif #define CTR0(m, _desc) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ memcpy (_ktrptr->ktr_desc, _desc, KTRDESCSIZE); \ } \ } #define CTR1(m, _desc, _p1) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ snprintf (_ktrptr->ktr_desc, KTRDESCSIZE, _desc, _p1); \ } \ } #define CTR2(m, _desc, _p1, _p2) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ snprintf (_ktrptr->ktr_desc, KTRDESCSIZE, _desc, _p1, _p2); \ } \ } #define CTR3(m, _desc, _p1, _p2, _p3) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ snprintf (_ktrptr->ktr_desc, KTRDESCSIZE, _desc, _p1, _p2, _p3); \ } \ } #define CTR4(m, _desc, _p1, _p2, _p3, _p4) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ snprintf (_ktrptr->ktr_desc, KTRDESCSIZE, _desc, _p1, _p2, _p3, _p4); \ } \ } #define CTR5(m, _desc, _p1, _p2, _p3, _p4, _p5) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if ((ktr_mask & (m)) && ((1 << _TR_CPU) & ktr_cpumask)) { \ _TR() \ snprintf (_ktrptr->ktr_desc, KTRDESCSIZE, _desc, _p1, _p2, _p3, _p4, _p5); \ @@ -219,20 +219,20 @@ extern struct ktr_entry ktr_buf[]; _ktrptr->ktr_desc = (_desc); #endif #define CTR0(m, _desc) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ } \ } #define CTR1(m, _desc, _p1) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ _ktrptr->ktr_parm1 = (u_long)(_p1); \ } \ } #define CTR2(m, _desc, _p1, _p2) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ _ktrptr->ktr_parm1 = (u_long)(_p1); \ @@ -240,7 +240,7 @@ extern struct ktr_entry ktr_buf[]; } \ } #define CTR3(m, _desc, _p1, _p2, _p3) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ _ktrptr->ktr_parm1 = (u_long)(_p1); \ @@ -249,7 +249,7 @@ extern struct ktr_entry ktr_buf[]; } \ } #define CTR4(m, _desc, _p1, _p2, _p3, _p4) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ _ktrptr->ktr_parm1 = (u_long)(_p1); \ @@ -259,7 +259,7 @@ extern struct ktr_entry ktr_buf[]; } \ } #define CTR5(m, _desc, _p1, _p2, _p3, _p4, _p5) \ - if (KTR_COMPILE & m) { \ + if (KTR_COMPILE & (m)) { \ if (ktr_mask & (m)) { \ _TR(_desc) \ _ktrptr->ktr_parm1 = (u_long)(_p1); \ |