summaryrefslogtreecommitdiff
path: root/bl31/bl31_main.c
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2014-06-12 17:23:58 +0100
committerSoby Mathew <soby.mathew@arm.com>2014-07-25 12:18:33 +0100
commitb79af9344503b2d7b435451cfb8b1ab80b8afdf4 (patch)
treed10f1c88279c9c5d481c82d6302d3989abc9bb3c /bl31/bl31_main.c
parenta1a441775f64da2cbbd42c4f2c6f818f93278fca (diff)
downloadarm-trusted-firmware-b79af9344503b2d7b435451cfb8b1ab80b8afdf4.tar.gz
Implement a leaner printf for Trusted Firmware
This patch implements a "tf_printf" which supports only the commonly used format specifiers in Trusted Firmware, which uses a lot less stack space than the stdlib printf function. Fixes ARM-software/tf-issues#116 Change-Id: I7dfa1944f4c1e634b3e2d571f49afe02d109a351
Diffstat (limited to 'bl31/bl31_main.c')
-rw-r--r--bl31/bl31_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c
index d949a08c2..031799ce2 100644
--- a/bl31/bl31_main.c
+++ b/bl31/bl31_main.c
@@ -34,9 +34,9 @@
#include <bl_common.h>
#include <bl31.h>
#include <context_mgmt.h>
+#include <debug.h>
#include <platform.h>
#include <runtime_svc.h>
-#include <stdio.h>
#include <string.h>
/*******************************************************************************
@@ -77,7 +77,7 @@ void bl31_main(void)
/* Perform platform setup in BL1 */
bl31_platform_setup();
- printf("BL31 %s\n\r", build_message);
+ tf_printf("BL31 %s\n\r", build_message);
/* Initialise helper libraries */
bl31_lib_init();