aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-02 23:17:50 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-11 21:39:44 +0000
commitfe4ba7c057db8bb57490bf53af42a6bec198a2d0 (patch)
treeb84d41fe9e26aeb7aaca715bf23b574ea1d7bde2 /src
parent2a5cd93d8fe22441e9988fb10e9df2cf44a97447 (diff)
cosmetic: embed compl_l3_type in FSM id
In the subscr_conn_fsm instance's ID, include the Complete Layer 3 type, so that we can see on the first glance whether a state transition belongs to MO or MT. The huge patch is due to the cosmetic change affecting nearly every single log line in the msc_vlr_tests, by nature of changing the FSM's ID. Related: OS#3122 Change-Id: I2a7e27e0f16df1872dcda64cb928c3b8528ea3f7
Diffstat (limited to 'src')
-rw-r--r--src/libmsc/subscr_conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmsc/subscr_conn.c b/src/libmsc/subscr_conn.c
index 1ca6b2d41..9f280bcde 100644
--- a/src/libmsc/subscr_conn.c
+++ b/src/libmsc/subscr_conn.c
@@ -580,8 +580,8 @@ void msc_subscr_conn_update_id(struct gsm_subscriber_connection *conn,
enum complete_layer3_type from, const char *id)
{
conn->complete_layer3_type = from;
- osmo_fsm_inst_update_id(conn->fi, id);
- LOGPFSML(conn->fi, LOGL_DEBUG, "Updated ID from %s\n", complete_layer3_type_name(from));
+ osmo_fsm_inst_update_id_f(conn->fi, "%s:%s", complete_layer3_type_name(from), id);
+ LOGPFSML(conn->fi, LOGL_DEBUG, "Updated ID\n");
}
static void rx_close_complete(struct gsm_subscriber_connection *conn, const char *label, bool *flag)