Change in osmo-bts[master]: oc2g: change log level for calibration file errors to ERROR

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

dexter gerrit-no-reply at lists.osmocom.org
Fri Mar 15 09:58:55 UTC 2019


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/13266


Change subject: oc2g: change log level for calibration file errors to ERROR
......................................................................

oc2g: change log level for calibration file errors to ERROR

The log level of the messages that notify calibration file loading
problems is NOTICE, but since it is a severe problem when calibration
can not be loaded lets change it to ERROR

Change-Id: I32aed25ca7925f1c776f00b37f404a58a85ddbc7
Related: OS#3823
---
M src/osmo-bts-oc2g/calib_file.c
1 file changed, 3 insertions(+), 3 deletions(-)



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

diff --git a/src/osmo-bts-oc2g/calib_file.c b/src/osmo-bts-oc2g/calib_file.c
index 5beb895..d7cbbb1 100644
--- a/src/osmo-bts-oc2g/calib_file.c
+++ b/src/osmo-bts-oc2g/calib_file.c
@@ -133,7 +133,7 @@
 
 	st->fp = fopen(fname, "rb");
 	if (!st->fp) {
-		LOGP(DL1C, LOGL_NOTICE, "Failed to open '%s' for calibration data.\n", fname);
+		LOGP(DL1C, LOGL_ERROR, "Failed to open '%s' for calibration data.\n", fname);
 		oml_tx_failure_event_rep(&fl1h->phy_inst->trx->mo, OSMO_EVT_WARN_SW_WARN,
 					 "Failed to open '%s' for calibration data.", fname);
 		return -1;
@@ -220,7 +220,7 @@
 
 	rc = calib_verify(fl1h, desc);
 	if (rc < 0) {
-		LOGP(DL1C, LOGL_NOTICE,"Verify L1 calibration table %s -> failed (%d)\n", desc->fname, rc);
+		LOGP(DL1C, LOGL_ERROR, "Verify L1 calibration table %s -> failed (%d)\n", desc->fname, rc);
 		oml_tx_failure_event_rep(&fl1h->phy_inst->trx->mo, OSMO_EVT_WARN_SW_WARN,
 					 "Verify L1 calibration table %s -> failed (%d)", desc->fname, rc);
 
@@ -277,7 +277,7 @@
 	char *calib_path = fl1h->phy_inst->u.oc2g.calib_path;
 
 	if (!calib_path) {
-		LOGP(DL1C, LOGL_NOTICE, "Calibration file path not specified\n");
+		LOGP(DL1C, LOGL_ERROR, "Calibration file path not specified\n");
 		oml_tx_failure_event_rep(&fl1h->phy_inst->trx->mo, OSMO_EVT_WARN_SW_WARN,
 					 "Calibration file path not specified");
 		return -1;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I32aed25ca7925f1c776f00b37f404a58a85ddbc7
Gerrit-Change-Number: 13266
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190315/bcf70d1b/attachment.htm>


More information about the gerrit-log mailing list