pespin has uploaded this change for review.

View Change

rsl: Conditionally decrease log level if cause is normal event

This avoid a NOTICE log line like the following when gsm_lchan_release()
is called.
"""
rsl.c:2484 (bts=0,trx=0,ts=2,ss=0) Sending RTP delete indication: cause = Normal event, unspecified
"""
Change-Id: I0ce78c52644983220f5810bc5c661b07afd9e543
---
M src/common/rsl.c
1 file changed, 3 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/69/27369/1
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 4c5fb9f..7d6621a 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2480,7 +2480,9 @@
{
struct msgb *nmsg;

- LOGPLCHAN(lchan, DRSL, LOGL_NOTICE, "Sending RTP delete indication: cause = %s\n",
+ LOGPLCHAN(lchan, DRSL,
+ (cause == RSL_ERR_NORMAL_UNSPEC) ? LOGL_INFO : LOGL_NOTICE,
+ "Sending RTP delete indication: cause = %s\n",
rsl_err_name(cause));

nmsg = rsl_msgb_alloc(sizeof(struct abis_rsl_dchan_hdr));

To view, visit change 27369. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I0ce78c52644983220f5810bc5c661b07afd9e543
Gerrit-Change-Number: 27369
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange