diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-16 16:46:06 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-22 10:26:05 +0100 |
commit | 39b6cc66d670be41d6b51b644beb675f386a4240 (patch) | |
tree | ddf5b68804ea9548ea75fe38108eeb6c790afd8c /drivers/auth | |
parent | 870ce3ddd3b33c59418a7dba703e8a66ec75f98f (diff) |
libc: Use printf and snprintf across codebase
tf_printf and tf_snprintf are now called printf and snprintf, so the
code needs to be updated.
Change-Id: Iffeee97afcd6328c4c2d30830d4923b964682d71
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'drivers/auth')
-rw-r--r-- | drivers/auth/mbedtls/mbedtls_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/auth/mbedtls/mbedtls_common.c b/drivers/auth/mbedtls/mbedtls_common.c index 64dc1967..7095fde3 100644 --- a/drivers/auth/mbedtls/mbedtls_common.c +++ b/drivers/auth/mbedtls/mbedtls_common.c @@ -6,6 +6,7 @@ #include <debug.h> #include <stdlib.h> +#include <stdio.h> /* mbed TLS headers */ #include <mbedtls/memory_buffer_alloc.h> @@ -45,10 +46,8 @@ void mbedtls_init(void) mbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE); #ifdef MBEDTLS_PLATFORM_SNPRINTF_ALT - /* Use reduced version of snprintf to save space. */ - mbedtls_platform_set_snprintf(tf_snprintf); + mbedtls_platform_set_snprintf(snprintf); #endif - ready = 1; } } |