mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 02:00:15 +01:00
logging: use _nm_log() to avoid duplicate check of whether logging is enabled
Use _nm_log() in places that already checked whether logging
is enabled. No need to check again as done by nm_log().
(cherry picked from commit 4526b55a51)
This commit is contained in:
parent
8306500b2d
commit
fe721ce7e9
1 changed files with 3 additions and 3 deletions
|
|
@ -94,9 +94,9 @@ static const VTableIP vtable_v4, vtable_v6;
|
|||
g_snprintf (__prefix, sizeof (__prefix), "%s%c[%p]", _LOG_PREFIX_NAME, __ch, (self)); \
|
||||
else \
|
||||
__prefix[STRLEN (_LOG_PREFIX_NAME)] = __ch; \
|
||||
nm_log ((level), (__domain), \
|
||||
"%s: " _NM_UTILS_MACRO_FIRST(__VA_ARGS__), \
|
||||
__prefix _NM_UTILS_MACRO_REST(__VA_ARGS__)); \
|
||||
_nm_log ((level), (__domain), 0, \
|
||||
"%s: " _NM_UTILS_MACRO_FIRST(__VA_ARGS__), \
|
||||
__prefix _NM_UTILS_MACRO_REST(__VA_ARGS__)); \
|
||||
} \
|
||||
} G_STMT_END
|
||||
#define _LOG_LEVEL_ENABLED(level, addr_family) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue