[PATCH] libosmo-sccp[master]: xua_srv_conn_cb(): Print sctp_recvmsg flags (line in xua_cli...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Apr 8 07:17:37 UTC 2017


Review at  https://gerrit.osmocom.org/2241

xua_srv_conn_cb(): Print sctp_recvmsg flags (line in xua_cli_conn_cb())

Change-Id: I91920c6ad665abc791a1dbf386d52cf0aece9133
---
M src/osmo_ss7.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/41/2241/1

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index df85ea8..8ec099a 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1163,8 +1163,8 @@
 	/* read xUA message from socket and process it */
 	rc = sctp_recvmsg(ofd->fd, msgb_data(msg), msgb_tailroom(msg),
 			  NULL, NULL, &sinfo, &flags);
-	LOGPASP(asp, DLSS7, LOGL_DEBUG, "%s(): sctp_recvmsg() returned %d\n",
-		__func__, rc);
+	LOGPASP(asp, DLSS7, LOGL_DEBUG, "%s(): sctp_recvmsg() returned %d (flags=0x%x)\n",
+		__func__, rc, flags);
 	if (rc < 0) {
 		osmo_stream_srv_destroy(conn);
 		goto out;

-- 
To view, visit https://gerrit.osmocom.org/2241
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91920c6ad665abc791a1dbf386d52cf0aece9133
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list