[PATCH] osmo-pcu[master]: Print error cause of pcu socket connect failure

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Dec 5 16:35:38 UTC 2017


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

Print error cause of pcu socket connect failure

Change-Id: I6fd5736b5916cbad72b96f064929bb667ff97ded
---
M src/osmobts_sock.cpp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/98/5198/1

diff --git a/src/osmobts_sock.cpp b/src/osmobts_sock.cpp
index 31715d5..d1ff4eb 100644
--- a/src/osmobts_sock.cpp
+++ b/src/osmobts_sock.cpp
@@ -263,7 +263,7 @@
 	rc = connect(bfd->fd, (struct sockaddr *) &local, namelen);
 	if (rc != 0) {
 		LOGP(DL1IF, LOGL_ERROR, "Failed to connect to the osmo-bts"
-			" PCU socket, delaying... '%s'\n", local.sun_path);
+			" PCU socket (%d), delaying... '%s'\n", rc, local.sun_path);
 		pcu_sock_state = state;
 		close(bfd->fd);
 		bfd->fd = -1;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fd5736b5916cbad72b96f064929bb667ff97ded
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list