fsm: Add VTY introspection of osmo_fsm and their instances

Change-Id: I89212e4f149f019099115a85bab353c04170df90
diff --git a/src/fsm.c b/src/fsm.c
index 666dbe3..0e2c9be 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -87,7 +87,7 @@
  *
  */
 
-static LLIST_HEAD(g_fsms);
+LLIST_HEAD(osmo_g_fsms);
 static bool fsm_log_addr = true;
 
 /*! \brief specify if FSM instance addresses should be logged or not
@@ -106,7 +106,7 @@
 struct osmo_fsm *osmo_fsm_find_by_name(const char *name)
 {
 	struct osmo_fsm *fsm;
-	llist_for_each_entry(fsm, &g_fsms, list) {
+	llist_for_each_entry(fsm, &osmo_g_fsms, list) {
 		if (!strcmp(name, fsm->name))
 			return fsm;
 	}
@@ -125,7 +125,7 @@
 {
 	if (osmo_fsm_find_by_name(fsm->name))
 		return -EEXIST;
-	llist_add_tail(&fsm->list, &g_fsms);
+	llist_add_tail(&fsm->list, &osmo_g_fsms);
 	INIT_LLIST_HEAD(&fsm->instances);
 
 	return 0;