blob: 1a80741088d3cbdd3118c5942f904440ecb930cd [file] [log] [blame]
David Hu1a74bc52021-08-19 11:17:42 +08001/*
David Hud44a0bd2022-01-18 14:51:35 +08002 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
David Hu1a74bc52021-08-19 11:17:42 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TEST_LOG_H__
9#define __TEST_LOG_H__
10
Raef Coles4817eb82022-01-18 12:33:24 +000011#ifdef USE_SP_LOG
David Hu1a74bc52021-08-19 11:17:42 +080012#include "tfm_sp_log.h"
Raef Coles4817eb82022-01-18 12:33:24 +000013#else
14#include "tfm_log_raw.h"
15#endif /* USE_SP_LOG */
David Hu1a74bc52021-08-19 11:17:42 +080016
17#ifdef __cplusplus
18extern "C" {
19#endif
20
Raef Coles4817eb82022-01-18 12:33:24 +000021#ifdef USE_SP_LOG
David Hu1a74bc52021-08-19 11:17:42 +080022#define TEST_LOG(...) tfm_sp_log_printf(__VA_ARGS__)
Raef Coles4817eb82022-01-18 12:33:24 +000023#else
24#define TEST_LOG(...) tfm_log_printf(__VA_ARGS__)
25#endif /* USE_SP_LOG */
David Hu1a74bc52021-08-19 11:17:42 +080026
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* __TEST_LOG_H__ */