summaryrefslogtreecommitdiffstats
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-09-23 09:04:25 +0200
committerGitHub <noreply@github.com>2022-09-23 09:04:25 +0200
commitf731266e954895dd60212613d9920622b823116e (patch)
tree6135038b9a6180f60f30c6bee274293cf09fad34 /zebra/kernel_socket.c
parentMerge pull request #11993 from opensourcerouting/feature/printfrr_pRD (diff)
parentzebra: changes for code maintainability (diff)
downloadfrr-f731266e954895dd60212613d9920622b823116e.tar.xz
frr-f731266e954895dd60212613d9920622b823116e.zip
Merge pull request #11997 from sri-mohan1/sri-zebra-dbg1
zebra: changes for code maintainability
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r--zebra/kernel_socket.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 4c089ee19..e76d8c0cc 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -534,7 +534,7 @@ int ifm_read(struct if_msghdr *ifm)
/* paranoia: sanity check structure */
if (ifm->ifm_msglen < sizeof(struct if_msghdr)) {
flog_err(EC_ZEBRA_NETLINK_LENGTH_ERROR,
- "ifm_read: ifm->ifm_msglen %d too short",
+ "%s: ifm->ifm_msglen %d too short", __func__,
ifm->ifm_msglen);
return -1;
}
@@ -1388,9 +1388,8 @@ static void kernel_read(struct thread *thread)
* can assume they have the whole message.
*/
if (rtm->rtm_msglen != nbytes) {
- zlog_debug(
- "kernel_read: rtm->rtm_msglen %d, nbytes %d, type %d",
- rtm->rtm_msglen, nbytes, rtm->rtm_type);
+ zlog_debug("%s: rtm->rtm_msglen %d, nbytes %d, type %d",
+ __func__, rtm->rtm_msglen, nbytes, rtm->rtm_type);
return;
}