David Hu | 1a74bc5 | 2021-08-19 11:17:42 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TEST_LOG_H__ |
| 9 | #define __TEST_LOG_H__ |
| 10 | |
| 11 | #if DOMAIN_NS == 1 |
| 12 | #include "tfm_log_raw.h" |
| 13 | #else |
| 14 | #include "tfm_sp_log.h" |
| 15 | #endif |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | #if DOMAIN_NS == 1 |
| 22 | #define TEST_LOG(...) tfm_log_printf(__VA_ARGS__) |
| 23 | #else |
| 24 | #define TEST_LOG(...) tfm_sp_log_printf(__VA_ARGS__) |
| 25 | #endif |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif /* __TEST_LOG_H__ */ |