pespin submitted this change.
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(-)
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 change 41855. To unsubscribe, or for help writing mail filters, visit settings.