From d30ac1c36f79588e7384cc56c69f885147a4286f Mon Sep 17 00:00:00 2001 From: Soby Mathew Date: Tue, 19 Jan 2016 17:52:28 +0000 Subject: Use tf_printf() for debug logs from xlat_tables.c The debug prints used to debug translation table setup in xlat_tables.c used the `printf()` standard library function instead of the stack optimized `tf_printf()` API. DEBUG_XLAT_TABLE option was used to enable debug logs within xlat_tables.c and it configured a much larger stack size for the platform in case it was enabled. This patch modifies these debug prints within xlat_tables.c to use tf_printf() and modifies the format specifiers to be compatible with tf_printf(). The debug prints are now enabled if the VERBOSE prints are enabled in Trusted Firmware via LOG_LEVEL build option. The much larger stack size definition when DEBUG_XLAT_TABLE is defined is no longer required and the platform ports are modified to remove this stack size definition. Change-Id: I2f7d77ea12a04b827fa15e2adc3125b1175e4c23 --- plat/mediatek/mt8173/include/platform_def.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plat/mediatek') diff --git a/plat/mediatek/mt8173/include/platform_def.h b/plat/mediatek/mt8173/include/platform_def.h index 7759b3ee..0573bc5e 100644 --- a/plat/mediatek/mt8173/include/platform_def.h +++ b/plat/mediatek/mt8173/include/platform_def.h @@ -31,7 +31,6 @@ #ifndef __PLATFORM_DEF_H__ #define __PLATFORM_DEF_H__ -#define DEBUG_XLAT_TABLE 0 /******************************************************************************* * Platform binary types for linking @@ -44,9 +43,7 @@ ******************************************************************************/ /* Size of cacheable stacks */ -#if DEBUG_XLAT_TABLE -#define PLATFORM_STACK_SIZE 0x800 -#elif IMAGE_BL1 +#if IMAGE_BL1 #define PLATFORM_STACK_SIZE 0x440 #elif IMAGE_BL2 #define PLATFORM_STACK_SIZE 0x400 -- cgit v1.2.3