[PATCH] osmo-bts[master]: LC15: osmo-bts-litecell15/calib_file.c: Alarm - Failed to op...

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/.

Minh-Quang Nguyen gerrit-no-reply at lists.osmocom.org
Tue Jun 14 15:23:06 UTC 2016


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/248

to look at the new patch set (#2).

LC15: osmo-bts-litecell15/calib_file.c: Alarm - Failed to open calibration data file

Change-Id: If2829d68531494f0ede8f9dd2fe19ea99c63ea99
---
M src/osmo-bts-litecell15/calib_file.c
1 file changed, 19 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/48/248/2

diff --git a/src/osmo-bts-litecell15/calib_file.c b/src/osmo-bts-litecell15/calib_file.c
index 3bc788c..1b60d3e 100644
--- a/src/osmo-bts-litecell15/calib_file.c
+++ b/src/osmo-bts-litecell15/calib_file.c
@@ -41,6 +41,7 @@
 #include "l1_if.h"
 #include "lc15bts.h"
 #include "utils.h"
+#include "osmo-bts/oml.h"
 
 /**
  *  * Maximum calibration data chunk size
@@ -137,7 +138,9 @@
 {
 	struct calib_send_state *st = &fl1h->st;
 	char *calib_path = fl1h->phy_inst->u.lc15.calib_path;
-        char fname[PATH_MAX];
+	char fname[PATH_MAX];
+	char log_msg[100];
+	struct gsm_failure_evt_rep failure_rep;
 
 	if (st->fp) {
 		LOGP(DL1C, LOGL_NOTICE, "L1 calibration file was left opened !!\n");
@@ -151,9 +154,21 @@
 
         st->fp = fopen(fname, "rb");
         if (!st->fp) {
-                LOGP(DL1C, LOGL_ERROR,
-                        "Failed to open '%s' for calibration data.\n", fname);
-                return -1;
+		snprintf(log_msg, 100, "Failed to open '%s' for calibration data.\n", fname);
+		LOGP(DL1C, LOGL_ERROR, "%s", log_msg);
+
+		if( fl1h->phy_inst->trx ){
+			failure_rep.event_type = NM_EVT_PROC_FAIL;
+			failure_rep.event_serverity = NM_SEVER_CRITICAL;
+			failure_rep.cause_type = NM_PCAUSE_T_MANUF;
+			failure_rep.event_cause = NM_MM_EVT_CRIT_BOOT_FAIL;
+			failure_rep.add_text = (char *)&log_msg;
+
+			fl1h->phy_inst->trx->mo.obj_inst.trx_nr = fl1h->phy_inst->trx->nr;
+
+			oml_tx_failure_event_rep(&fl1h->phy_inst->trx->mo, failure_rep);
+		}
+		return -1;
         }
 	return 0;
 }

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

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If2829d68531494f0ede8f9dd2fe19ea99c63ea99
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list