@@ -871,6 +871,7 @@ static int configure_drivers(dmfsi_context_t ctx, const char* driver_name, const
871871 */
872872static driver_node_t * configure_driver (const char * driver_name , dmini_context_t config_ctx )
873873{
874+ DMOD_LOG_VERBOSE ("Configuring driver: %s\n" , driver_name );
874875 bool was_loaded = false;
875876 bool was_enabled = false;
876877 Dmod_Context_t * driver = prepare_driver_module (driver_name , & was_loaded , & was_enabled );
@@ -919,6 +920,8 @@ static driver_node_t* configure_driver(const char* driver_name, dmini_context_t
919920 return NULL ;
920921 }
921922
923+ DMOD_LOG_INFO ("Configured driver: %s (path: %s)\n" , driver_name , driver_node -> path );
924+
922925 return driver_node ;
923926}
924927
@@ -942,6 +945,7 @@ static int unconfigure_drivers(dmfsi_context_t ctx)
942945 if (dmdrvi_free != NULL )
943946 {
944947 dmdrvi_free (driver_node -> driver_context );
948+ DMOD_LOG_INFO ("Freed driver context for: %s\n" , Dmod_GetName (driver_node -> driver ));
945949 }
946950 cleanup_driver_module (Dmod_GetName (driver_node -> driver ), driver_node -> was_loaded , driver_node -> was_enabled );
947951 Dmod_Free (driver_node );
@@ -950,6 +954,8 @@ static int unconfigure_drivers(dmfsi_context_t ctx)
950954
951955 dmlist_clear (ctx -> drivers );
952956
957+ DMOD_LOG_INFO ("Unconfigured all drivers\n" );
958+
953959 return DMFSI_OK ;
954960}
955961
@@ -1033,6 +1039,8 @@ static Dmod_Context_t* prepare_driver_module(const char* driver_name, bool* was_
10331039 }
10341040 return NULL ;
10351041 }
1042+
1043+ DMOD_LOG_INFO ("Prepared driver module: %s (was_loaded: %d, was_enabled: %d)\n" , driver_name , * was_loaded , * was_enabled );
10361044 return driver ;
10371045}
10381046
0 commit comments