Fix operator priority
(notably ternary ?: is less prioritized than <=)
This commit is contained in:
parent
233f7e8526
commit
fbf0c191e1
1 changed files with 2 additions and 2 deletions
4
l2tpns.h
4
l2tpns.h
|
|
@ -984,8 +984,8 @@ void lac_tunnelshutdown(tunnelidt t, char *reason, int result, int error, char *
|
|||
|
||||
#undef LOG
|
||||
#undef LOG_HEX
|
||||
#define LOG(D, s, t, f, ...) ({ if (D <= config->debug) _log(D, s, t, f, ## __VA_ARGS__); })
|
||||
#define LOG_HEX(D, t, d, s) ({ if (D <= config->debug) _log_hex(D, t, d, s); })
|
||||
#define LOG(D, s, t, f, ...) ({ if ((D) <= config->debug) _log((D), s, t, f, ## __VA_ARGS__); })
|
||||
#define LOG_HEX(D, t, d, s) ({ if ((D) <= config->debug) _log_hex((D), t, d, s); })
|
||||
|
||||
void _log(int level, sessionidt s, tunnelidt t, const char *format, ...) __attribute__((format (printf, 4, 5)));
|
||||
void _log_hex(int level, const char *title, const uint8_t *data, int maxsize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue