summaryrefslogtreecommitdiff
path: root/common/bl_common.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 /common/bl_common.c
parenta1a441775f64da2cbbd42c4f2c6f818f93278fca (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 'common/bl_common.c')
-rw-r--r--common/bl_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/bl_common.c b/common/bl_common.c
index d4bde515..60b63f18 100644
--- a/common/bl_common.c
+++ b/common/bl_common.c
@@ -148,12 +148,12 @@ static void dump_load_info(unsigned long image_load_addr,
const meminfo_t *mem_layout)
{
#if DEBUG
- printf("Trying to load image at address 0x%lx, size = 0x%lx\r\n",
+ tf_printf("Trying to load image at address 0x%lx, size = 0x%lx\r\n",
image_load_addr, image_size);
- printf("Current memory layout:\r\n");
- printf(" total region = [0x%lx, 0x%lx]\r\n", mem_layout->total_base,
+ tf_printf("Current memory layout:\r\n");
+ tf_printf(" total region = [0x%lx, 0x%lx]\r\n", mem_layout->total_base,
mem_layout->total_base + mem_layout->total_size);
- printf(" free region = [0x%lx, 0x%lx]\r\n", mem_layout->free_base,
+ tf_printf(" free region = [0x%lx, 0x%lx]\r\n", mem_layout->free_base,
mem_layout->free_base + mem_layout->free_size);
#endif
}