summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorsri-mohan1 <sri.mohan@samsung.com>2022-09-23 00:04:40 +0530
committersri-mohan1 <sri.mohan@samsung.com>2022-09-23 09:57:35 +0530
commita843c5ba2a64593652a0d91c854e185e044c17f8 (patch)
treed9c33806275c05f0f39a86baa58c4cf960752945 /zebra/kernel_socket.c
parent6751c0f328b0f2d237c4eff6f7c979fb2d6671d7 (diff)
zebra: changes for code maintainability
these changes are for improving the code maintainability Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
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 cb549339af..22b1029557 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;
}
@@ -1396,9 +1396,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;
}