flow_log__() has the option to append an extra log message with address
details of the flow, to give more context to errors or warnings. Add an
indent to this part of the message, to emphasise that it's additional
information related to a nearby message, rather than a message in its own
right.
Suggested-by: Stefano Brivio
Signed-off-by: David Gibson
---
flow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/flow.c b/flow.c
index c6741251..8f8435e6 100644
--- a/flow.c
+++ b/flow.c
@@ -315,7 +315,7 @@ void flow_log__(const struct flow_common *f, int pri, bool perror, bool details,
if (state >= FLOW_STATE_TGT) {
flow_log__(f, pri, false, false, state,
-"%s [%s]:%hu -> [%s]:%hu => %s [%s]:%hu -> [%s]:%hu",
+" %s [%s]:%hu -> [%s]:%hu => %s [%s]:%hu -> [%s]:%hu",
pif_name(f->pif[INISIDE]),
inany_ntop(&ini->eaddr, estr0, sizeof(estr0)),
ini->eport,
@@ -328,7 +328,7 @@ void flow_log__(const struct flow_common *f, int pri, bool perror, bool details,
tgt->eport);
} else if (state >= FLOW_STATE_INI) {
flow_log__(f, pri, false, false, state,
- "%s [%s]:%hu -> [%s]:%hu => ?",
+ " %s [%s]:%hu -> [%s]:%hu => ?",
pif_name(f->pif[INISIDE]),
inany_ntop(&ini->eaddr, estr0, sizeof(estr0)),
ini->eport,
--
2.54.0