aboutsummaryrefslogtreecommitdiffstats
path: root/common/aarch64/debug.S
diff options
context:
space:
mode:
Diffstat (limited to 'common/aarch64/debug.S')
-rw-r--r--common/aarch64/debug.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/aarch64/debug.S b/common/aarch64/debug.S
index fb6924ea1..3d8e0f413 100644
--- a/common/aarch64/debug.S
+++ b/common/aarch64/debug.S
@@ -78,6 +78,11 @@ dec_print_loop:
* ---------------------------------------------------------------------------
*/
func asm_assert
+#if LOG_LEVEL >= LOG_LEVEL_INFO
+ /*
+ * Only print the output if LOG_LEVEL is higher or equal to
+ * LOG_LEVEL_INFO, which is the default value for builds with DEBUG=1.
+ */
mov x5, x0
mov x6, x1
/* Ensure the console is initialized */
@@ -98,6 +103,7 @@ func asm_assert
asm_print_line_dec
bl plat_crash_console_flush
_assert_loop:
+#endif /* LOG_LEVEL >= LOG_LEVEL_INFO */
no_ret plat_panic_handler
endfunc asm_assert
#endif