]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: changes for code maintainability
authorsri-mohan1 <sri.mohan@samsung.com>
Mon, 29 Aug 2022 17:52:16 +0000 (23:22 +0530)
committersri-mohan1 <sri.mohan@samsung.com>
Tue, 30 Aug 2022 05:46:23 +0000 (11:16 +0530)
these changes are for improving the code maintainability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
ldpd/ldpe.c

index 792dcb2f2a8618ab67c5f4c09c054fdba95f0de6..1b5c0e90fb6130b61b8efc3f55ef78cae50dff88 100644 (file)
@@ -616,8 +616,8 @@ static void ldpe_dispatch_main(struct thread *thread)
                        }
                        break;
                default:
-                       log_debug("ldpe_dispatch_main: error handling imsg %d",
-                           imsg.hdr.type);
+                       log_debug("%s: error handling imsg %d",
+                           __func__, imsg.hdr.type);
                        break;
                }
                imsg_free(&imsg);
@@ -724,7 +724,7 @@ static void ldpe_dispatch_lde(struct thread *thread)
 
                        nbr = nbr_find_peerid(imsg.hdr.peerid);
                        if (nbr == NULL) {
-                               log_debug("ldpe_dispatch_lde: cannot find neighbor");
+                               log_debug("%s: cannot find neighbor", __func__);
                                break;
                        }
                        if (nbr->state != NBR_STA_OPER)
@@ -744,7 +744,7 @@ static void ldpe_dispatch_lde(struct thread *thread)
                case IMSG_NBR_SHUTDOWN:
                        nbr = nbr_find_peerid(imsg.hdr.peerid);
                        if (nbr == NULL) {
-                               log_debug("ldpe_dispatch_lde: cannot find neighbor");
+                               log_debug("%s: cannot find neighbor", __func__);
                                break;
                        }
                        if (nbr->state != NBR_STA_OPER)
@@ -752,8 +752,8 @@ static void ldpe_dispatch_lde(struct thread *thread)
                        session_shutdown(nbr,S_SHUTDOWN,0,0);
                        break;
                default:
-                       log_debug("ldpe_dispatch_lde: error handling imsg %d",
-                           imsg.hdr.type);
+                       log_debug("%s: error handling imsg %d",
+                           __func__, imsg.hdr.type);
                        break;
                }
                imsg_free(&imsg);