log: in new RUA,SCCP FSM IDs, indicate CS/PS
During tests without an SGSN, I noticed SCCP connections failing, and I also noticed that I couldn't tell if they were CS or PS related. Add a "CS"/"PS" indicator to FSM instance IDs for RUA and SCCP. Change-Id: I5b8242196af3b08eaf64ca5ac1c257a97a5d02cb
This commit is contained in:
parent
be7df7c1a7
commit
bc92608e60
|
@ -72,7 +72,8 @@ void map_rua_fsm_alloc(struct hnbgw_context_map *map)
|
|||
{
|
||||
struct osmo_fsm_inst *fi = osmo_fsm_inst_alloc(&map_rua_fsm, map, map, LOGL_DEBUG, NULL);
|
||||
OSMO_ASSERT(fi);
|
||||
osmo_fsm_inst_update_id_f_sanitize(fi, '-', "%s-RUA-%u", hnb_context_name(map->hnb_ctx), map->rua_ctx_id);
|
||||
osmo_fsm_inst_update_id_f_sanitize(fi, '-', "%s-%s-RUA-%u", hnb_context_name(map->hnb_ctx),
|
||||
map->is_ps ? "PS" : "CS", map->rua_ctx_id);
|
||||
|
||||
OSMO_ASSERT(map->rua_fi == NULL);
|
||||
map->rua_fi = fi;
|
||||
|
|
|
@ -78,7 +78,8 @@ void map_sccp_fsm_alloc(struct hnbgw_context_map *map)
|
|||
{
|
||||
struct osmo_fsm_inst *fi = osmo_fsm_inst_alloc(&map_sccp_fsm, map, map, LOGL_DEBUG, NULL);
|
||||
OSMO_ASSERT(fi);
|
||||
osmo_fsm_inst_update_id_f_sanitize(fi, '-', "%s-SCCP-%u", hnb_context_name(map->hnb_ctx), map->scu_conn_id);
|
||||
osmo_fsm_inst_update_id_f_sanitize(fi, '-', "%s-%s-SCCP-%u", hnb_context_name(map->hnb_ctx),
|
||||
map->is_ps ? "PS" : "CS", map->scu_conn_id);
|
||||
|
||||
OSMO_ASSERT(map->sccp_fi == NULL);
|
||||
map->sccp_fi = fi;
|
||||
|
|
Loading…
Reference in New Issue