diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-28 15:04:52 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-28 20:37:09 +0200 |
commit | 5977b71f28075c34eb9e45aaa2d7cdc791f7eaf8 (patch) | |
tree | 44f0e8caf628eae20a9be91e63b7f6b47d871551 /src/libsystemd-network/lldp-rx-internal.h | |
parent | tree-wide: make format_ifname() or friends return negative errno on failure (diff) | |
download | systemd-5977b71f28075c34eb9e45aaa2d7cdc791f7eaf8.tar.xz systemd-5977b71f28075c34eb9e45aaa2d7cdc791f7eaf8.zip |
libsystemd-network: make sd_dhcp_client_get_ifname() or friends return negative errno on error
Diffstat (limited to 'src/libsystemd-network/lldp-rx-internal.h')
-rw-r--r-- | src/libsystemd-network/lldp-rx-internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-network/lldp-rx-internal.h b/src/libsystemd-network/lldp-rx-internal.h index 6d3ce0e1bc..83d0bc460d 100644 --- a/src/libsystemd-network/lldp-rx-internal.h +++ b/src/libsystemd-network/lldp-rx-internal.h @@ -5,7 +5,7 @@ #include "sd-lldp-rx.h" #include "hashmap.h" -#include "log-link.h" +#include "network-common.h" #include "prioq.h" struct sd_lldp_rx { @@ -39,10 +39,10 @@ sd_lldp_rx_event_t lldp_rx_event_from_string(const char *s) _pure_; #define log_lldp_rx_errno(lldp_rx, error, fmt, ...) \ log_interface_prefix_full_errno( \ "LLDP Rx: ", \ - sd_lldp_rx_get_ifname(lldp_rx), \ + sd_lldp_rx, lldp_rx, \ error, fmt, ##__VA_ARGS__) #define log_lldp_rx(lldp_rx, fmt, ...) \ log_interface_prefix_full_errno_zerook( \ "LLDP Rx: ", \ - sd_lldp_rx_get_ifname(lldp_rx), \ + sd_lldp_rx, lldp_rx, \ 0, fmt, ##__VA_ARGS__) |