From 45c72350b345efbbcf4b5dc42ed971fb77b4a418 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 10 Dec 2020 01:47:54 +0100 Subject: debug log, lchan_fsm: explain leaving wait_rll_rtp_establish state Before, it is not clear whether the RTP is already done setting up or the RTP is skipped entirely. This log message clarifies that. Change-Id: I18ffcf93e82ee47413e4b2f741ffbfbb18322e1d --- src/osmo-bsc/lchan_fsm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osmo-bsc/lchan_fsm.c b/src/osmo-bsc/lchan_fsm.c index 9c7ecaf48..6f0fd63da 100644 --- a/src/osmo-bsc/lchan_fsm.c +++ b/src/osmo-bsc/lchan_fsm.c @@ -861,8 +861,13 @@ static void lchan_fsm_wait_rll_rtp_establish(struct osmo_fsm_inst *fi, uint32_t case LCHAN_EV_RLL_ESTABLISH_IND: if (!lchan->activate.info.requires_voice_stream - || lchan_rtp_established(lchan)) + || lchan_rtp_established(lchan)) { + LOG_LCHAN(lchan, LOGL_DEBUG, + "%s\n", + (lchan->activate.info.requires_voice_stream ? + "RTP already established earlier" : "no voice stream required")); lchan_fsm_state_chg(LCHAN_ST_ESTABLISHED); + } return; case LCHAN_EV_RTP_READY: -- cgit v1.2.3