slotmap: Log file/line when changing state

Change-Id: Idc7b350b464ddc50076f92dae592a0d5ad4d486a
diff --git a/src/slotmap.h b/src/slotmap.h
index 3eb976f..bc55f29 100644
--- a/src/slotmap.h
+++ b/src/slotmap.h
@@ -87,9 +87,13 @@
 struct slotmaps *slotmap_init(void *ctx);
 
 #ifdef REMSIM_SERVER
-void _slotmap_state_change(struct slot_mapping *map, enum slot_mapping_state new_state,
-			   struct llist_head *new_bank_list);
+void _Slotmap_state_change(struct slot_mapping *map, enum slot_mapping_state new_state,
+			   struct llist_head *new_bank_list, const char *file, int line);
 /* thread-safe way to change the state of given slot map */
-void slotmap_state_change(struct slot_mapping *map, enum slot_mapping_state new_state,
-			  struct llist_head *new_bank_list);
+void Slotmap_state_change(struct slot_mapping *map, enum slot_mapping_state new_state,
+			  struct llist_head *new_bank_list, const char *file, int line);
+#define _slotmap_state_change(map, state, list)				\
+	_Slotmap_state_change(map, state, list, __FILE__, __LINE__)
+#define slotmap_state_change(map, state, list)				\
+	Slotmap_state_change(map, state, list, __FILE__, __LINE__)
 #endif