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

Log filenames on L1 errors

Change-Id: I7e73374f3f1da662ebed52548d29b6b76443c81b
---
M src/osmo-bts-sysmo/l1_transp_hw.c
1 file changed, 4 insertions(+), 4 deletions(-)


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

diff --git a/src/osmo-bts-sysmo/l1_transp_hw.c 
b/src/osmo-bts-sysmo/l1_transp_hw.c
index 9c0a514..95e3119 100644
--- a/src/osmo-bts-sysmo/l1_transp_hw.c
+++ b/src/osmo-bts-sysmo/l1_transp_hw.c
@@ -266,8 +266,8 @@
 
        rc = open(rd_devnames[q], O_RDONLY);
        if (rc < 0) {
-               LOGP(DL1C, LOGL_FATAL, "unable to open msg_queue: %s\n",
-                       strerror(errno));
+               LOGP(DL1C, LOGL_FATAL, "[%d] unable to open %s for reading: 
%s\n",
+                    q, rd_devnames[q], strerror(errno));
                return rc;
        }
        read_ofd->fd = rc;
@@ -284,8 +284,8 @@
 
        rc = open(wr_devnames[q], O_WRONLY);
        if (rc < 0) {
-               LOGP(DL1C, LOGL_FATAL, "unable to open msg_queue: %s\n",
-                       strerror(errno));
+               LOGP(DL1C, LOGL_FATAL, "[%d] unable to open %s for writing: 
%s\n",
+                    q, wr_devnames[q], strerror(errno));
                goto out_read;
        }
        osmo_wqueue_init(wq, 10);

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e73374f3f1da662ebed52548d29b6b76443c81b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <[email protected]>

Reply via email to