summaryrefslogtreecommitdiff
path: root/zebra/if_netlink.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2020-03-05 17:37:03 -0500
committerGitHub <noreply@github.com>2020-03-05 17:37:03 -0500
commit498897d8d837f2abee51a0064ee45c639340c5bb (patch)
tree45010659cdd6fc20103db249e24b9501c8f11e29 /zebra/if_netlink.c
parent01abb5acde5891f48491282b32a06b873be1f98a (diff)
parent15569c58f8001d37bccaed7f99b6987315125036 (diff)
Merge pull request #5918 from ton31337/fix/__func__everywhere
__func__ everywhere
Diffstat (limited to 'zebra/if_netlink.c')
-rw-r--r--zebra/if_netlink.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 4731d1ed15..580efee40e 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -616,10 +616,10 @@ static int netlink_interface(struct nlmsghdr *h, ns_id_t ns_id, int startup)
len = h->nlmsg_len - NLMSG_LENGTH(sizeof(struct ifinfomsg));
if (len < 0) {
- zlog_err("%s: Message received from netlink is of a broken size: %d %zu",
- __PRETTY_FUNCTION__,
- h->nlmsg_len,
- (size_t)NLMSG_LENGTH(sizeof(struct ifinfomsg)));
+ zlog_err(
+ "%s: Message received from netlink is of a broken size: %d %zu",
+ __func__, h->nlmsg_len,
+ (size_t)NLMSG_LENGTH(sizeof(struct ifinfomsg)));
return -1;
}
@@ -975,10 +975,10 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup)
len = h->nlmsg_len - NLMSG_LENGTH(sizeof(struct ifaddrmsg));
if (len < 0) {
- zlog_err("%s: Message received from netlink is of a broken size: %d %zu",
- __PRETTY_FUNCTION__,
- h->nlmsg_len,
- (size_t)NLMSG_LENGTH(sizeof(struct ifaddrmsg)));
+ zlog_err(
+ "%s: Message received from netlink is of a broken size: %d %zu",
+ __func__, h->nlmsg_len,
+ (size_t)NLMSG_LENGTH(sizeof(struct ifaddrmsg)));
return -1;
}
@@ -1176,9 +1176,10 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
len = h->nlmsg_len - NLMSG_LENGTH(sizeof(struct ifinfomsg));
if (len < 0) {
- zlog_err("%s: Message received from netlink is of a broken size %d %zu",
- __PRETTY_FUNCTION__, h->nlmsg_len,
- (size_t)NLMSG_LENGTH(sizeof(struct ifinfomsg)));
+ zlog_err(
+ "%s: Message received from netlink is of a broken size %d %zu",
+ __func__, h->nlmsg_len,
+ (size_t)NLMSG_LENGTH(sizeof(struct ifinfomsg)));
return -1;
}