diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2019-03-15 10:54:37 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-27 07:58:56 +0000 |
commit | dd7cc3cc7c91bfe8371de6294a1a4fb225878432 (patch) | |
tree | 84c3fad74833395b903a38a6cc8ce24c7a65c5dc | |
parent | 7b96b8832f7a06ca3b128a81e883136b6e55a823 (diff) |
oc2g: change log level for calibration file errors to FATAL
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 FATAL
Change-Id: I32aed25ca7925f1c776f00b37f404a58a85ddbc7
Related: OS#3823
-rw-r--r-- | src/osmo-bts-oc2g/calib_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-oc2g/calib_file.c b/src/osmo-bts-oc2g/calib_file.c index ed7aa168..72ec2665 100644 --- a/src/osmo-bts-oc2g/calib_file.c +++ b/src/osmo-bts-oc2g/calib_file.c @@ -133,7 +133,7 @@ static int calib_file_open(struct oc2gl1_hdl *fl1h, st->fp = fopen(fname, "rb"); if (!st->fp) { - LOGP(DL1C, LOGL_NOTICE, "Failed to open '%s' for calibration data.\n", fname); + LOGP(DL1C, LOGL_FATAL, "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 @@ static int calib_file_send(struct oc2gl1_hdl *fl1h, 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_FATAL, "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 @@ int calib_load(struct oc2gl1_hdl *fl1h) 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_FATAL, "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; |