diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-03-02 19:06:57 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-03-02 19:07:01 +0100 |
commit | a3dca762dd9d6ac6fa75a62aaa1eaed20c96aa87 (patch) | |
tree | e7f4e93be8fa9282fd629db1c620cb157b6b547c /src/common/rsl.c | |
parent | a6a0c6ad1e5f4f9e08894b50c4d139d9046ca350 (diff) |
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
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r-- | src/common/rsl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c index 4c5fb9fb..7d6621af 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -2480,7 +2480,9 @@ int rsl_tx_ipac_dlcx_ind(struct gsm_lchan *lchan, uint8_t cause) { 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)); |