[MERGED] libosmo-abis[master]: Expand network error callback

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 Dec 12 11:08:02 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: Expand network error callback
......................................................................


Expand network error callback

ortp: use extra parameter for network_error callback in log message as
it's described in oRTP documentation (error string).

Change-Id: I581db499d453b80230198d95000f0f6fc20752d1
---
M src/trau/osmo_ortp.c
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index f7adc93..0f0b9e5 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -130,7 +130,7 @@
 	int port = rtp_session_get_local_port(rs);
 
 	LOGP(DLMIB, LOGL_ERROR,
-	     "osmo-ortp(%d): network_error\n", port);
+	     "osmo-ortp(%d): network_error %s\n", port, (char *)data);
 }
 
 static void ortp_sig_cb_ts(RtpSession *rs, void *data)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I581db499d453b80230198d95000f0f6fc20752d1
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list