pespin has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-netif/+/41855?usp=email )
Change subject: stream_cli: Log state in stream_sctp_recvmsg_wrapper()
......................................................................
stream_cli: Log state in stream_sctp_recvmsg_wrapper()
Same as done in LOGSCLI macro.
Change-Id: Icac56b48b0d5715096a4d4872f88997eb6d708d2
---
M src/stream_cli.c
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
diff --git a/src/stream_cli.c b/src/stream_cli.c
index f0606b4..befa3e1 100644
--- a/src/stream_cli.c
+++ b/src/stream_cli.c
@@ -1433,7 +1433,9 @@
case IPPROTO_SCTP:
{
char log_pfx[128];
- snprintf(log_pfx, sizeof(log_pfx), "CLICONN(%s,%s)",
cli->name ? : "", cli->sockname);
+ snprintf(log_pfx, sizeof(log_pfx), "CLICONN(%s,%s){%s}",
+ cli->name ? : "", cli->sockname,
+ get_value_string(stream_cli_state_names,
cli->state));
ret = stream_sctp_recvmsg_wrapper(cli->ofd.fd, msg,
log_pfx);
break;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/41855?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Icac56b48b0d5715096a4d4872f88997eb6d708d2
Gerrit-Change-Number: 41855
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>