[PATCH] osmo-bts[master]: Log socket path on error

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

Max gerrit-no-reply at lists.osmocom.org
Fri Jan 6 16:30:36 UTC 2017


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

Log socket path on error

Change-Id: If912ac0bc815986de2a231facb5cf317a677be68
---
M src/common/pcu_sock.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/37/1537/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 62f18a7..afd880f 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -861,8 +861,8 @@
 	bfd->fd = osmo_sock_unix_init(SOCK_SEQPACKET, 0, path,
 		OSMO_SOCK_F_BIND);
 	if (bfd->fd < 0) {
-		LOGP(DPCU, LOGL_ERROR, "Could not create unix socket: %s\n",
-			strerror(errno));
+		LOGP(DPCU, LOGL_ERROR, "Could not create %s unix socket: %s\n",
+		     path, strerror(errno));
 		talloc_free(state);
 		return -1;
 	}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If912ac0bc815986de2a231facb5cf317a677be68
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list