App: Change printf to tfm_log_printf
Implement stdio output of NS USART and change the 'printf' in
non-secure App to 'tfm_log_printf'. Use 'tfm_log_printf' from
'interface' folder for the substitute.
Change-Id: I871ea999adb525879cc2f1e3183036feb6d1a671
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/app/tfm_integ_test.h b/app/tfm_integ_test.h
index 8b52ba0..236e9ef 100644
--- a/app/tfm_integ_test.h
+++ b/app/tfm_integ_test.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2019, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <cmsis_compiler.h>
+#include "log/tfm_log_raw.h"
#ifndef __TFM_INTEG_TEST_H__
#define __TFM_INTEG_TEST_H__
@@ -49,7 +50,7 @@
{
/* if IPSR is non-zero, exception is active. NOT banked S/NS */
if (!__get_IPSR()) {
- printf("\t\033[1;32m[Non-Sec] %s\033[0m\r\n", MSG);
+ tfm_log_printf("\t\033[1;32m[Non-Sec] %s\033[0m\r\n", MSG);
}
}