From a54726bd5ca4318c25c8ba2dd44ae47145967b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 28 Dec 2017 21:14:57 +0100 Subject: [PATCH] added logging of driver loading --- framework/unit_registry.c | 5 ++++- platform/plat_init.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/unit_registry.c b/framework/unit_registry.c index 4459a9f..84dcc89 100644 --- a/framework/unit_registry.c +++ b/framework/unit_registry.c @@ -43,8 +43,11 @@ static int32_t unit_count = -1; void ureg_add_type(const UnitDriver *driver) { assert_param(driver != NULL); - assert_param(driver->description != 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->cfgLoadBinary != NULL); assert_param(driver->cfgLoadIni != NULL); diff --git a/platform/plat_init.c b/platform/plat_init.c index 1b356b1..18fbbda 100644 --- a/platform/plat_init.c +++ b/platform/plat_init.c @@ -27,7 +27,7 @@ void plat_init(void) dbg("Loading 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(); }