aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-09 09:06:58 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-09 09:08:27 +0100
commit268ba55a6ed81fff1935ecf6aad9f879ec07b288 (patch)
treea0f9e7a558d50ae46e08f49bd3a44e8483718fe2 /src
parent742dad5b6952c9ee32029b4d960a57721c4ef069 (diff)
OML: remove double-logging on oml_tx_failure_event_rep()
When we send an OML failure event report using oml_tx_failure_event_rep(), the function itself will not only send the report to the BSC but also log it. So there's no need to both have an explicit LOGP() and a call to oml_tx_failure_event_rep(). Change-Id: Ib3fd06b3266d896aebeed4ebe42ac71ff173bb5c
Diffstat (limited to 'src')
-rw-r--r--src/common/oml.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 6d8bc4bc..82d12c79 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -558,7 +558,6 @@ static int oml_rx_get_attr(struct gsm_bts *bts, struct msgb *msg)
}
if (!TLVP_PRES_LEN(&tp, NM_ATT_LIST_REQ_ATTR, 1)) {
- LOGP(DOML, LOGL_ERROR, "O&M Get Attributes message without Attribute List?!\n");
oml_tx_failure_event_rep(&bts->mo, OSMO_EVT_MAJ_UNSUP_ATTR, "Get Attribute without Attribute List");
return oml_fom_ack_nack(msg, NM_NACK_INCORR_STRUCT);
}
@@ -1074,9 +1073,6 @@ static inline bool report_bts_number_incorrect(struct gsm_bts *bts, const struct
"Unexpected BTS %d in manufacturer O&M %s (exp. 0 or 0xFF)";
if (foh->obj_inst.bts_nr != 0 && foh->obj_inst.bts_nr != 0xff) {
- LOGP(DOML, LOGL_ERROR, form, foh->obj_inst.bts_nr, get_value_string(abis_nm_msgtype_names,
- foh->msg_type));
- LOGPC(DOML, LOGL_ERROR, "\n");
trx = gsm_bts_trx_num(bts, foh->obj_inst.trx_nr);
if (trx)
mo = &trx->mo;
@@ -1139,8 +1135,6 @@ static int down_fom(struct gsm_bts *bts, struct msgb *msg)
ret = oml_rx_get_attr(bts, msg);
break;
default:
- LOGP(DOML, LOGL_INFO, "unknown Formatted O&M msg_type 0x%02x\n",
- foh->msg_type);
trx = gsm_bts_trx_num(bts, foh->obj_inst.trx_nr);
if (trx) {
oml_tx_failure_event_rep(&trx->mo, OSMO_EVT_MAJ_UKWN_MSG,