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
This commit is contained in:
parent
a6a0c6ad1e
commit
a3dca762dd
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue