diff options
author | Chris Kay <chris.kay@arm.com> | 2019-12-04 15:05:28 +0000 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-03-24 17:52:55 +0000 |
commit | 819690283526d1d768dcea49b47bdb51c1de6e55 (patch) | |
tree | a5898c26831a3b81518682e81b72d5cd2611d356 /module/msys_rom | |
parent | 26a32af3ecb7d92c05e2114423b25f4c203ed193 (diff) |
fwk: Filter log messages by level
This commit introduces the ability to filter logs based on their
criticality. Log messages that do not exceed the configured criticality
are removed at preprocessing time.
This, in turn, allows us to remove logging calls that do not meet the
criticality requirement, reducing the size of the executable image and
increasing the performance of release images.
Change-Id: I56e14175b67a3e4e68fd03b8e457a802192898d1
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'module/msys_rom')
-rw-r--r-- | module/msys_rom/src/mod_msys_rom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/msys_rom/src/mod_msys_rom.c b/module/msys_rom/src/mod_msys_rom.c index d2a7a4ce..6f00d9a7 100644 --- a/module/msys_rom/src/mod_msys_rom.c +++ b/module/msys_rom/src/mod_msys_rom.c @@ -10,7 +10,6 @@ */ #include <mod_bootloader.h> -#include <mod_log.h> #include <mod_msys_rom.h> #include <mod_power_domain.h> #include <mod_ppu_v1.h> @@ -18,6 +17,7 @@ #include <fwk_assert.h> #include <fwk_event.h> #include <fwk_id.h> +#include <fwk_log.h> #include <fwk_module.h> #include <fwk_module_idx.h> #include <fwk_notification.h> @@ -53,12 +53,12 @@ static int msys_deferred_setup(void) ctx.ppu_boot_api->power_mode_on(ctx.rom_config->id_primary_cluster); ctx.ppu_boot_api->power_mode_on(ctx.rom_config->id_primary_core); - ctx.log_api->log(MOD_LOG_GROUP_INFO, "[SYSTEM] Primary CPU powered\n"); + FWK_LOG_INFO(ctx.log_api, "[SYSTEM] Primary CPU powered\n"); status = ctx.bootloader_api->load_image(); - ctx.log_api->log( - MOD_LOG_GROUP_ERROR, + FWK_LOG_ERR( + ctx.log_api, "[SYSTEM] Failed to load RAM firmware image: %d\n", status); |