Core: Refine 'logging' and 'assert' symbols
* Define a generic (non-core) TFM_ASSERT.
* Define core dedicated TFM_CORE_ASSERT.
* Remove redundant LOG_MSG defination in 'tfm_integ_test.h'.
Change-Id: I05437550844b29b2bc660a70566b48ccc3d5bca4
Signed-off-by: Ken Liu <ken.liu@arm.com>
diff --git a/secure_fw/spm/spm_api_func.c b/secure_fw/spm/spm_api_func.c
index bf2b4b8..45059d1 100644
--- a/secure_fw/spm/spm_api_func.c
+++ b/secure_fw/spm/spm_api_func.c
@@ -36,19 +36,9 @@
sp_error_type_t err_type,
int32_t err_code)
{
-#ifdef TFM_CORE_DEBUG
- if (err_type == TFM_INIT_FAILURE) {
- printf("Partition init failed for partition id 0x%08X\r\n",
- partition->static_data->partition_id);
- } else {
- printf(
- "Unknown partition error %d (code: %d) for partition id 0x%08X\r\n",
- err_type, err_code, partition->static_data->partition_id);
- }
-#else
(void)err_type;
(void)err_code;
-#endif
+
tfm_spm_partition_set_state(partition->static_data->partition_id,
SPM_PARTITION_STATE_CLOSED);
}