mpt.h: macro parenthesization

Build with gcc -Wint-in-bool-context revealed a macro parenthesization
error (invoking mpt_lprt with a ternary expression for level).

Reviewed by:	markj
Approved by:	markj (mentor)
Sponsored by:	Dell EMC Isilon
Differential revision:	https://reviews.freebsd.org/D11412
This commit is contained in:
Ryan Libby 2017-06-30 22:06:24 +00:00
parent fb0e3235ea
commit 5a62cbcaad

View File

@ -932,14 +932,14 @@ enum {
#define mpt_lprt(mpt, level, ...) \
do { \
if (level <= (mpt)->verbose) \
if ((level) <= (mpt)->verbose) \
mpt_prt(mpt, __VA_ARGS__); \
} while (0)
#if 0
#define mpt_lprtc(mpt, level, ...) \
do { \
if (level <= (mpt)->verbose) \
if ((level) <= (mpt)->verbose) \
mpt_prtc(mpt, __VA_ARGS__); \
} while (0)
#endif