[PATCH] osmo-bts[master]: Log filenames on L1 errors

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
Tue Dec 5 12:56:47 UTC 2017


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 <msuraev at sysmocom.de>



More information about the gerrit-log mailing list