SPRTL: Add log API for Secure Partitions
SPM and Secure Partitions(SP) will use different log implementations.
This patch adds the implementations for SP:
- SP log HAL API
- SP log interface
The log implementations re-use the currently shared log implementations.
Change-Id: I3e87e9424e6ea2a51e534bdab85406e4007c8261
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Co-authored-by: Summer Qin <summer.qin@arm.com>
Co-authored-by: Shawn Shan <shawn.shan@arm.com>
diff --git a/secure_fw/partitions/crypto/crypto_init.c b/secure_fw/partitions/crypto/crypto_init.c
index 648b76a..9b93ea8 100644
--- a/secure_fw/partitions/crypto/crypto_init.c
+++ b/secure_fw/partitions/crypto/crypto_init.c
@@ -9,7 +9,7 @@
#include "tfm_crypto_api.h"
#include "tfm_crypto_defs.h"
-#include "log/tfm_log.h"
+#include "tfm_sp_log.h"
/*
* \brief This Mbed TLS include is needed to initialise the memory allocator
@@ -278,7 +278,7 @@
{
/* Log unsafe entropy source */
#if defined (MBEDTLS_TEST_NULL_ENTROPY)
- LOG_MSG("\033[1;34m[Crypto] MBEDTLS_TEST_NULL_ENTROPY is not suitable for production!\033[0m\r\n");
+ LOG_INFFMT("\033[1;34m[Crypto] MBEDTLS_TEST_NULL_ENTROPY is not suitable for production!\033[0m\r\n");
#endif
/* Initialise the Mbed Crypto memory allocator to use static