summaryrefslogtreecommitdiff
path: root/ldpd/ldpe.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-03-27 12:35:23 +0100
committerDavid Lamparter <equinox@diac24.net>2020-07-14 10:37:25 +0200
commit3efd0893d01696b680325679077382992d4eb33f (patch)
treeaac81fef8b8f5194e8280092f625b3f7b58da73b /ldpd/ldpe.c
parent93195af63f5cfcd0745524dc24561c277340a3bc (diff)
*: un-split strings across lines
Remove mid-string line breaks, cf. workflow doc: .. [#tool_style_conflicts] For example, lines over 80 characters are allowed for text strings to make it possible to search the code for them: please see `Linux kernel style (breaking long lines and strings) <https://www.kernel.org/doc/html/v4.10/process/coding-style.html#breaking-long-lines-and-strings>`_ and `Issue #1794 <https://github.com/FRRouting/frr/issues/1794>`_. Scripted commit, idempotent to running: ``` python3 tools/stringmangle.py --unwrap `git ls-files | egrep '\.[ch]$'` ``` Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ldpd/ldpe.c')
-rw-r--r--ldpd/ldpe.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index 3f0a4fd33e..655313bf16 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -355,13 +355,11 @@ ldpe_dispatch_main(struct thread *thread)
break;
case IMSG_SOCKET_IPC:
if (iev_lde) {
- log_warnx("%s: received unexpected imsg fd "
- "to lde", __func__);
+ log_warnx("%s: received unexpected imsg fd to lde", __func__);
break;
}
if ((fd = imsg.fd) == -1) {
- log_warnx("%s: expected to receive imsg fd to "
- "lde but didn't receive any", __func__);
+ log_warnx("%s: expected to receive imsg fd to lde but didn't receive any", __func__);
break;
}
@@ -617,8 +615,7 @@ 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("ldpe_dispatch_lde: cannot find neighbor");
break;
}
if (nbr->state != NBR_STA_OPER)
@@ -645,8 +642,7 @@ ldpe_dispatch_lde(struct thread *thread)
case IMSG_WITHDRAW_ADD_END:
nbr = nbr_find_peerid(imsg.hdr.peerid);
if (nbr == NULL) {
- log_debug("ldpe_dispatch_lde: cannot find "
- "neighbor");
+ log_debug("ldpe_dispatch_lde: cannot find neighbor");
break;
}
if (nbr->state != NBR_STA_OPER)
@@ -679,8 +675,7 @@ 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("ldpe_dispatch_lde: cannot find neighbor");
break;
}
if (nbr->state != NBR_STA_OPER)
@@ -700,8 +695,7 @@ 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("ldpe_dispatch_lde: cannot find neighbor");
break;
}
if (nbr->state != NBR_STA_OPER)