SPM: Use SPMLOG_ERRMSG instead of ERROR_MSG macro
The ERROR_MSG() macro is still used through the code
although is not defined anymore. Use the SPMLOG_ERRMSG
macro instead to provide error message prints.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: If23455e6f008b0ecc471579591c5d1e2e95cdccb
diff --git a/secure_fw/spm/include/utilities.h b/secure_fw/spm/include/utilities.h
index 847e406..1a21a8a 100644
--- a/secure_fw/spm/include/utilities.h
+++ b/secure_fw/spm/include/utilities.h
@@ -33,6 +33,7 @@
#define TO_CONTAINER(ptr, type, member) \
(type *)((unsigned long)(ptr) - offsetof(type, member))
-#define ERROR_MSG(msg)
+/* FixMe: Replace ERROR_MSG() in platform code with a suitable API */
+#define ERROR_MSG(msg) SPMLOG_ERRMSG(msg "\r\n")
#endif /* __TFM_UTILS_H__ */