LIB: Update tests to use new logging API

Update secure runtime tests to use the new unprivileged logging API in
place of the SPM log API they were using previously.

Change-Id: I092e6ca54523cf5a7cefc866c07cbe60434f1b9d
Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com>
diff --git a/tests_reg/test/framework/test_log.h b/tests_reg/test/framework/test_log.h
index 995f726..4c14c60 100644
--- a/tests_reg/test/framework/test_log.h
+++ b/tests_reg/test/framework/test_log.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -9,7 +9,7 @@
 #define __TEST_LOG_H__
 
 #ifdef USE_SP_LOG
-#include "tfm_sp_log.h"
+#include "tfm_log_unpriv.h"
 #elif defined USE_STDIO
 #include <stdio.h>
 #else
@@ -20,7 +20,9 @@
 extern "C" {
 #endif
 
-#if defined USE_SP_LOG || USE_STDIO
+#if defined USE_SP_LOG
+#define TEST_LOG(...) tfm_log_unpriv(LOG_MARKER_RAW __VA_ARGS__)
+#elif defined USE_STDIO
 #define TEST_LOG(...) printf(__VA_ARGS__)
 #else
 #define TEST_LOG(...) tfm_log_printf(__VA_ARGS__)