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

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Jan 7 12:15:31 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Log socket path on error
......................................................................


Log socket path on error

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

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



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: merged
Gerrit-Change-Id: If912ac0bc815986de2a231facb5cf317a677be68
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder


More information about the gerrit-log mailing list