Merge pull request #11940 from sri-mohan1/sri-zebra-dbg1

zebra: changes for code maintainability
This commit is contained in:
Mark Stapp 2022-09-19 10:43:38 -04:00 committed by GitHub
commit 173bdac44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -199,7 +199,7 @@ static int if_getaddrs(void)
ifp = if_lookup_by_name(ifap->ifa_name, VRF_DEFAULT);
if (ifp == NULL) {
flog_err(EC_LIB_INTERFACE,
"if_getaddrs(): Can't lookup interface %s",
"%s: Can't lookup interface %s", __func__,
ifap->ifa_name);
continue;
}
@ -290,7 +290,7 @@ static void interface_info_ioctl()
void interface_list(struct zebra_ns *zns)
{
zlog_info("interface_list: NS %u", zns->ns_id);
zlog_info("%s: NS %u", __func__, zns->ns_id);
/* Linux can do both proc & ioctl, ioctl is the only way to get
interface aliases in 2.2 series kernels. */

View File

@ -1443,7 +1443,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup)
if (IS_ZEBRA_DEBUG_KERNEL) /* remove this line to see initial ifcfg */
{
char buf[BUFSIZ];
zlog_debug("netlink_interface_addr %s %s flags 0x%x:",
zlog_debug("%s %s %s flags 0x%x:", __func__,
nl_msg_type_to_str(h->nlmsg_type), ifp->name,
kernel_flags);
if (tb[IFA_LOCAL])
@ -1818,7 +1818,7 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
/* assume if not default zns, then new VRF */
if (!(h->nlmsg_type == RTM_NEWLINK || h->nlmsg_type == RTM_DELLINK)) {
/* If this is not link add/delete message so print warning. */
zlog_debug("netlink_link_change: wrong kernel message %s",
zlog_debug("%s: wrong kernel message %s", __func__,
nl_msg_type_to_str(h->nlmsg_type));
return 0;
}

View File

@ -97,7 +97,7 @@ void interface_list(struct zebra_ns *zns)
NET_RT_IFLIST, 0};
if (zns->ns_id != NS_DEFAULT) {
zlog_debug("interface_list: ignore NS %u", zns->ns_id);
zlog_debug("%s: ignore NS %u", __func__, zns->ns_id);
return;
}
@ -132,7 +132,7 @@ void interface_list(struct zebra_ns *zns)
ifam_read((struct ifa_msghdr *)ifm);
break;
default:
zlog_info("interfaces_list(): unexpected message type");
zlog_info("%s: unexpected message type", __func__);
XFREE(MTYPE_TMP, ref);
return;
break;