added logging of driver loading

sipo
Ondřej Hruška 7 years ago
parent 85dd77311b
commit a54726bd5c
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      framework/unit_registry.c
  2. 2
      platform/plat_init.c

@ -43,8 +43,11 @@ static int32_t unit_count = -1;
void ureg_add_type(const UnitDriver *driver) void ureg_add_type(const UnitDriver *driver)
{ {
assert_param(driver != NULL); assert_param(driver != NULL);
assert_param(driver->description != NULL);
assert_param(driver->name != NULL); assert_param(driver->name != NULL);
dbg("Loading driver %s", driver->name);
assert_param(driver->description != NULL);
assert_param(driver->preInit != NULL); assert_param(driver->preInit != NULL);
assert_param(driver->cfgLoadBinary != NULL); assert_param(driver->cfgLoadBinary != NULL);
assert_param(driver->cfgLoadIni != NULL); assert_param(driver->cfgLoadIni != NULL);

@ -27,7 +27,7 @@ void plat_init(void)
dbg("Loading settings ..."); dbg("Loading settings ...");
// Load settings from Flash and apply (includes System settings and all Unit settings) // Load settings from Flash and apply (includes System settings and all Unit settings)
settings_load(); settings_load(); // XXX maybe this should be moved to the main task
comm_init(); comm_init();
} }

Loading…
Cancel
Save