From: sri-mohan1 Date: Mon, 29 Aug 2022 17:52:16 +0000 (+0530) Subject: ldpd: changes for code maintainability X-Git-Tag: base_8.4~83^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c313846a25a78a8ea721459d224f78183ed02002;p=matthieu%2Ffrr.git ldpd: changes for code maintainability these changes are for improving the code maintainability Signed-off-by: sri-mohan1 --- diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c index 792dcb2f2a..1b5c0e90fb 100644 --- a/ldpd/ldpe.c +++ b/ldpd/ldpe.c @@ -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);