summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-10-26 11:11:41 +0200
committerMax <msuraev@sysmocom.de>2018-10-26 11:11:41 +0200
commit8bda1c2f52ef3cf6906c7e0d6b494ad58aef5c31 (patch)
tree9357d79cd9eb9b92ce7b401ac0f503755d075c0d /src
parent5516f2cad3555ef6de3ebcecf35147190a4dd8f4 (diff)
Report socket path on errors
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/src/common/l1l2_interface.c2
-rw-r--r--src/host/layer23/src/common/sap_interface.c2
-rw-r--r--src/host/osmocon/osmoload.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/host/layer23/src/common/l1l2_interface.c b/src/host/layer23/src/common/l1l2_interface.c
index e21b07ee..b366d517 100644
--- a/src/host/layer23/src/common/l1l2_interface.c
+++ b/src/host/layer23/src/common/l1l2_interface.c
@@ -109,7 +109,7 @@ int layer2_open(struct osmocom_ms *ms, const char *socket_path)
rc = osmo_sock_unix_init_ofd(&ms->l2_wq.bfd, SOCK_STREAM, 0, socket_path, OSMO_SOCK_F_CONNECT);
if (rc < 0) {
- fprintf(stderr, "Failed to create unix domain socket.\n");
+ fprintf(stderr, "Failed to create unix domain socket %s\n", socket_path);
return rc;
}
diff --git a/src/host/layer23/src/common/sap_interface.c b/src/host/layer23/src/common/sap_interface.c
index da03c0f2..cab3c6b8 100644
--- a/src/host/layer23/src/common/sap_interface.c
+++ b/src/host/layer23/src/common/sap_interface.c
@@ -503,7 +503,7 @@ int sap_open(struct osmocom_ms *ms, const char *socket_path)
rc = osmo_sock_unix_init_ofd(&ms->sap_wq.bfd, SOCK_STREAM, 0, socket_path, OSMO_SOCK_F_CONNECT);
if (rc < 0) {
- fprintf(stderr, "Failed to create unix domain socket.\n");
+ fprintf(stderr, "Failed to create unix domain socket %s\n", socket_path);
ms->sap_entity.sap_state = SAP_SOCKET_ERROR;
return rc;
}
diff --git a/src/host/osmocon/osmoload.c b/src/host/osmocon/osmoload.c
index b1b48e24..decdc139 100644
--- a/src/host/osmocon/osmoload.c
+++ b/src/host/osmocon/osmoload.c
@@ -499,7 +499,7 @@ loader_connect(const char *socket_path) {
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.\n");
+ fprintf(stderr, "Failed to create unix domain socket %s\n", socket_path);
exit(1);
}