mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
g_virstor.h: macro parenthesization
Build with gcc -Wint-in-bool-context revealed a macro parenthesization error (invoking LOG_MSG with a ternary expression for lvl). Reviewed by: markj Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential revision: https://reviews.freebsd.org/D11411
This commit is contained in:
parent
b73ac66839
commit
fb0e3235ea
1 changed files with 4 additions and 4 deletions
|
|
@ -48,8 +48,8 @@ struct virstor_map_entry {
|
|||
#define LOG_MSG(lvl, ...) do { \
|
||||
if (g_virstor_debug >= (lvl)) { \
|
||||
printf("GEOM_" G_VIRSTOR_CLASS_NAME); \
|
||||
if (lvl > 0) \
|
||||
printf("[%u]", lvl); \
|
||||
if ((lvl) > 0) \
|
||||
printf("[%u]", (lvl)); \
|
||||
printf(": "); \
|
||||
printf(__VA_ARGS__); \
|
||||
printf("\n"); \
|
||||
|
|
@ -60,8 +60,8 @@ struct virstor_map_entry {
|
|||
#define LOG_REQ(lvl, bp, ...) do { \
|
||||
if (g_virstor_debug >= (lvl)) { \
|
||||
printf("GEOM_" G_VIRSTOR_CLASS_NAME); \
|
||||
if (lvl > 0) \
|
||||
printf("[%u]", lvl); \
|
||||
if ((lvl) > 0) \
|
||||
printf("[%u]", (lvl)); \
|
||||
printf(": "); \
|
||||
printf(__VA_ARGS__); \
|
||||
printf(" "); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue