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:
parent
6681eb021a
commit
a84171ce6f
@ -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__); \
|
||||
|
Loading…
Reference in New Issue
Block a user