Change in osmocom-bb[master]: osmocon: log error cause for socket opening

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
Mon Nov 19 09:17:10 UTC 2018


Max has submitted this change and it was merged. ( https://gerrit.osmocom.org/11813 )

Change subject: osmocon: log error cause for socket opening
......................................................................

osmocon: log error cause for socket opening

Change-Id: I2f871cb16e5e1033e42863a9e12459057004782c
---
M src/host/osmocon/osmoload.c
1 file changed, 2 insertions(+), 1 deletion(-)

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



diff --git a/src/host/osmocon/osmoload.c b/src/host/osmocon/osmoload.c
index decdc13..d320b29 100644
--- a/src/host/osmocon/osmoload.c
+++ b/src/host/osmocon/osmoload.c
@@ -499,7 +499,8 @@
 
 	rc = osmo_sock_unix_init_ofd(conn, SOCK_STREAM, 0, socket_path, OSMO_SOCK_F_CONNECT);
 	if (rc < 0) {
-		fprintf(stderr, "Failed to create unix domain socket %s\n", socket_path);
+		fprintf(stderr, "Failed to create unix domain socket %s: %s\n",
+			socket_path, strerror(-rc));
 		exit(1);
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/11813
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2f871cb16e5e1033e42863a9e12459057004782c
Gerrit-Change-Number: 11813
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181119/802266cd/attachment.htm>


More information about the gerrit-log mailing list