debug log: log lchan state transitions
Change-Id: Id20f61ef535f4ea049da6579e41eb98f31238d23
This commit is contained in:
parent
b231e0f6cd
commit
7efc2f3c5b
|
@ -19,9 +19,15 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <osmocom/core/logging.h>
|
||||||
|
#include <osmo-bts/logging.h>
|
||||||
#include <osmo-bts/gsm_data.h>
|
#include <osmo-bts/gsm_data.h>
|
||||||
|
|
||||||
void lchan_set_state(struct gsm_lchan *lchan, enum gsm_lchan_state state)
|
void lchan_set_state(struct gsm_lchan *lchan, enum gsm_lchan_state state)
|
||||||
{
|
{
|
||||||
|
DEBUGP(DL1C, "%s state %s -> %s\n",
|
||||||
|
gsm_lchan_name(lchan),
|
||||||
|
gsm_lchans_name(lchan->state),
|
||||||
|
gsm_lchans_name(state));
|
||||||
lchan->state = state;
|
lchan->state = state;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue