aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-06-20 01:26:22 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-06-22 09:13:46 +0200
commit2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15 (patch)
tree2855982adbe554e468340d854f078d3221d50cc9
parentd66a3f18138f94a3a7f8674d75551e7a844a1308 (diff)
downloadpasst-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar.gz
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar.bz2
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar.lz
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar.xz
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.tar.zst
passt-2fbeb3b1ea2998a1e1a1854aea9fdffcc62a4d15.zip
flow: Indent flow details messages
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 <sbrivio@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flow.c b/flow.c
index c674125..8f8435e 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,