mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 16:20:09 +01:00
n-dhcp4: fix logging macro
The level can be a complex expression, don't use it directly in the macro.
This commit is contained in:
parent
9f2014ac64
commit
910267cf5f
1 changed files with 3 additions and 2 deletions
|
|
@ -702,10 +702,11 @@ static inline uint64_t n_dhcp4_gettime(clockid_t clock) {
|
|||
#define n_dhcp4_c_log(_config, _level, ...) \
|
||||
do { \
|
||||
const NDhcp4ClientConfig *__config = _config; \
|
||||
int __level = _level; \
|
||||
\
|
||||
if (_level <= __config->log.level && __config->log.func) { \
|
||||
if (__level <= __config->log.level && __config->log.func) { \
|
||||
if (1) { \
|
||||
_config->log.func(_level, \
|
||||
_config->log.func(__level, \
|
||||
__config->log.data, \
|
||||
__VA_ARGS__); \
|
||||
} else { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue