1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

libsystemd-network: do not warn when log_dhcp_client() or friends with NULL

This commit is contained in:
Yu Watanabe 2021-10-25 04:48:39 +09:00
parent 6681eb021a
commit a84171ce6f

View File

@ -8,8 +8,10 @@
int _e = (error); \
if (DEBUG_LOGGING) { \
const char *_n = NULL; \
type *_v = (val); \
\
(void) type##_get_ifname(val, &_n); \
if (_v) \
(void) type##_get_ifname(_v, &_n); \
log_interface_full_errno_zerook( \
_n, LOG_DEBUG, _e, prefix fmt, \
##__VA_ARGS__); \