diff options
author | Soby Mathew <soby.mathew@arm.com> | 2014-06-12 17:23:58 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2014-07-25 12:18:33 +0100 |
commit | b79af9344503b2d7b435451cfb8b1ab80b8afdf4 (patch) | |
tree | d10f1c88279c9c5d481c82d6302d3989abc9bb3c /bl2 | |
parent | a1a441775f64da2cbbd42c4f2c6f818f93278fca (diff) |
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 'bl2')
-rw-r--r-- | bl2/bl2_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index d96e199c..70b688a6 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -35,7 +35,6 @@ #include <debug.h> #include <platform.h> #include <platform_def.h> -#include <stdio.h> #include "bl2_private.h" /******************************************************************************* @@ -196,7 +195,7 @@ void bl2_main(void) /* Perform platform setup in BL2 */ bl2_platform_setup(); - printf("BL2 %s\n\r", build_message); + tf_printf("BL2 %s\n\r", build_message); /* * Load the subsequent bootloader images |