Commit bea363ad authored by Soby Mathew's avatar Soby Mathew
Browse files

Juno: Define PLAT_LOG_LEVEL_ASSERT to LOG_LEVEL_INFO



This patch fixes the PLAT_LOG_LEVEL_ASSERT to 40 which corresponds
to LOG_LEVEL_INFO. Having this level of log for assertions means that the
`assert()` will not generate the strings implied in the expression taken
as parameter. This allows to save some memory when Juno is built for
LOG_LEVEL = LOG_LEVEL_VERBOSE and DEBUG = 1.

Fixes ARM-software/tf-issues#511

Change-Id: Id84a40f803ab07a5a8f6e587167af96694a07d04
Signed-off-by: default avatarSoby Mathew <soby.mathew@arm.com>
parent d818a02c
...@@ -122,6 +122,12 @@ ...@@ -122,6 +122,12 @@
*/ */
#define PLAT_ARM_MAX_BL31_SIZE 0x1D000 #define PLAT_ARM_MAX_BL31_SIZE 0x1D000
/*
* Since free SRAM space is scant, enable the ASSERTION message size
* optimization by fixing the PLAT_LOG_LEVEL_ASSERT to LOG_LEVEL_INFO (40).
*/
#define PLAT_LOG_LEVEL_ASSERT 40
#endif /* ARM_BOARD_OPTIMISE_MEM */ #endif /* ARM_BOARD_OPTIMISE_MEM */
/* CCI related constants */ /* CCI related constants */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment