debug log: log lchan state transitions

Change-Id: Id20f61ef535f4ea049da6579e41eb98f31238d23
This commit is contained in:
Neels Hofmeyr 2016-06-16 17:20:01 +02:00 committed by Harald Welte
parent b231e0f6cd
commit 7efc2f3c5b
1 changed files with 6 additions and 0 deletions

View File

@ -19,9 +19,15 @@
*
*/
#include <osmocom/core/logging.h>
#include <osmo-bts/logging.h>
#include <osmo-bts/gsm_data.h>
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;
}