aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-16 19:26:43 +0200
committerlaforge <laforge@osmocom.org>2020-06-18 11:39:13 +0000
commitcfd307b4e881924c6b0ced539e9aa86cd55d6967 (patch)
treeabdeae44e989a2a5341a81b603da261aaefd5e69
parentb26a5a82dbbb8b24d9d1d5cbbf7bbfdf7e4df645 (diff)
sgsn_libgtp: Improve ps-paging logging
-rw-r--r--src/sgsn/sgsn_libgtp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sgsn/sgsn_libgtp.c b/src/sgsn/sgsn_libgtp.c
index 7b46476b..717df4ab 100644
--- a/src/sgsn/sgsn_libgtp.c
+++ b/src/sgsn/sgsn_libgtp.c
@@ -661,13 +661,19 @@ static int cb_data_ind(struct pdp_t *lib, void *packet, unsigned int len)
switch (mm->gmm_fsm->state) {
case ST_GMM_REGISTERED_SUSPENDED:
/* initiate PS PAGING procedure */
+ LOGMMCTXP(LOGL_INFO, mm, "Paging MS in GMM state %s\n",
+ osmo_fsm_inst_state_name(mm->gmm_fsm));
gprs_gb_page_ps_ra(mm);
/* FIXME: queue the packet we received from GTP */
break;
case ST_GMM_REGISTERED_NORMAL:
OSMO_ASSERT(mm->gb.mm_state_fsm->state != ST_MM_IDLE);
- if (mm->gb.mm_state_fsm->state == ST_MM_STANDBY)
+ if (mm->gb.mm_state_fsm->state == ST_MM_STANDBY) {
+ LOGMMCTXP(LOGL_INFO, mm, "Paging MS in GMM state %s, MM state %s\n",
+ osmo_fsm_inst_state_name(mm->gmm_fsm),
+ osmo_fsm_inst_state_name(mm->gb.mm_state_fsm));
gprs_gb_page_ps_ra(mm);
+ }
/* FIXME: queue the packet we received from GTP */
break;