[MERGED] libosmo-sccp[master]: xua_cli_conn_cb: Print flags as hex, not decimal.

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
Mon Apr 10 11:27:01 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: xua_cli_conn_cb: Print flags as hex, not decimal.
......................................................................


xua_cli_conn_cb: Print flags as hex, not decimal.

Change-Id: Idcf861cfdc6c14d7d3bafbf2e243da5db6e2f3e6
---
M src/osmo_ss7.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 2dbb94d..df85ea8 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1246,7 +1246,7 @@
 	/* 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 (flags=%d)\n",
+	LOGPASP(asp, DLSS7, LOGL_DEBUG, "%s(): sctp_recvmsg() returned %d (flags=0x%x)\n",
 		__func__, rc, flags);
 	if (rc < 0) {
 		osmo_stream_cli_reconnect(conn);

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idcf861cfdc6c14d7d3bafbf2e243da5db6e2f3e6
Gerrit-PatchSet: 5
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list