diff options
| author | sri-mohan1 <sri.mohan@samsung.com> | 2023-06-08 23:19:43 +0530 |
|---|---|---|
| committer | sri-mohan1 <sri.mohan@samsung.com> | 2023-06-14 16:42:26 +0530 |
| commit | 8443d112b398ded67daaaffae0539ffa2a7118a4 (patch) | |
| tree | ab6c92fccca522a29296cb37247b647e0ed7f7c9 /ldpd/ldp_debug.c | |
| parent | 22c329ed32cd83ce54a1f1d014d8056d816cb28b (diff) | |
ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to 'ldpd/ldp_debug.c')
| -rw-r--r-- | ldpd/ldp_debug.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ldpd/ldp_debug.c b/ldpd/ldp_debug.c index d2aeaba8b3..957fb8e556 100644 --- a/ldpd/ldp_debug.c +++ b/ldpd/ldp_debug.c @@ -97,8 +97,7 @@ ldp_vty_debug(struct vty *vty, const char *negate, const char *type_str, DEBUG_ON(zebra, LDP_DEBUG_ZEBRA); } - main_imsg_compose_both(IMSG_DEBUG_UPDATE, &ldp_debug, - sizeof(ldp_debug)); + main_imsg_compose_both(IMSG_DEBUG_UPDATE, &ldp_debug, sizeof(ldp_debug)); return (CMD_SUCCESS); } @@ -119,13 +118,11 @@ ldp_vty_show_debugging(struct vty *vty) if (LDP_DEBUG(labels, LDP_DEBUG_LABELS)) vty_out (vty, " LDP labels debugging is on\n"); if (LDP_DEBUG(msg, LDP_DEBUG_MSG_RECV_ALL)) - vty_out (vty, - " LDP detailed messages debugging is on (inbound)\n"); + vty_out (vty, " LDP detailed messages debugging is on (inbound)\n"); else if (LDP_DEBUG(msg, LDP_DEBUG_MSG_RECV)) vty_out (vty," LDP messages debugging is on (inbound)\n"); if (LDP_DEBUG(msg, LDP_DEBUG_MSG_SEND_ALL)) - vty_out (vty, - " LDP detailed messages debugging is on (outbound)\n"); + vty_out (vty, " LDP detailed messages debugging is on (outbound)\n"); else if (LDP_DEBUG(msg, LDP_DEBUG_MSG_SEND)) vty_out (vty," LDP messages debugging is on (outbound)\n"); if (LDP_DEBUG(sync, LDP_DEBUG_SYNC)) |
