[XS] Change in libosmo-netif[master]: stream_cli: Log state in stream_sctp_recvmsg_wrapper()
pespin has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/55/41855/1 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: newchange Gerrit-Project: libosmo-netif Gerrit-Branch: master Gerrit-Change-Id: Icac56b48b0d5715096a4d4872f88997eb6d708d2 Gerrit-Change-Number: 41855 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>
participants (1)
-
pespin