diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-14 23:12:50 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-14 23:32:07 +0200 |
commit | a0c2541b6bd38fcfd8282a5f86d6366fbd20d614 (patch) | |
tree | f9f67a2dba4781af17ffe887936ca9829c8b7844 /src/libsystemd-network/sd-ipv4ll.c | |
parent | Check that errno passed log_{interface,link}_*_errno() is non-zero (diff) | |
download | systemd-a0c2541b6bd38fcfd8282a5f86d6366fbd20d614.tar.xz systemd-a0c2541b6bd38fcfd8282a5f86d6366fbd20d614.zip |
libsystemd-network: use macro for definitions of log_{lldp,dhcp,…}_errno
No functional change.
Diffstat (limited to 'src/libsystemd-network/sd-ipv4ll.c')
-rw-r--r-- | src/libsystemd-network/sd-ipv4ll.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c index cdde412a55..448449059e 100644 --- a/src/libsystemd-network/sd-ipv4ll.c +++ b/src/libsystemd-network/sd-ipv4ll.c @@ -49,16 +49,11 @@ struct sd_ipv4ll { void* userdata; }; -#define log_ipv4ll_errno(ll, error, fmt, ...) \ - ({ \ - int _e = (error); \ - if (DEBUG_LOGGING) \ - log_interface_full_errno_zerook( \ - sd_ipv4ll_get_ifname(ll), \ - LOG_DEBUG, _e, "IPv4LL: " fmt, \ - ##__VA_ARGS__); \ - -ERRNO_VALUE(_e); \ - }) +#define log_ipv4ll_errno(ll, error, fmt, ...) \ + log_interface_prefix_full_errno_zerook( \ + "IPv4LL: ", \ + sd_ipv4ll_get_ifname(ll), \ + error, fmt, ##__VA_ARGS__) #define log_ipv4ll(ll, fmt, ...) \ log_ipv4ll_errno(ll, 0, fmt, ##__VA_ARGS__) |