blob: fbbe7bce9f7c44f80bdef982279ef8863260bc31 [file] [log] [blame]
Summer Qin77894232020-08-28 11:24:15 +08001/*
Jackson Cooper-Driver290b88f2025-07-09 09:18:13 +01002 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Summer Qin77894232020-08-28 11:24:15 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_LOG_H__
9#define __TFM_LOG_H__
10
Kevin Pengaf602292020-10-20 17:49:52 +080011#include "tfm_log_raw.h"
Summer Qin77894232020-08-28 11:24:15 +080012
13/* Functions and macros in this file is for 'thread mode' usage. */
14
David Vinczefa2f53a2024-11-26 15:35:48 +000015#ifdef TFM_NS_LOG
Summer Qin77894232020-08-28 11:24:15 +080016#define LOG_MSG(...) tfm_log_printf(__VA_ARGS__)
David Vinczefa2f53a2024-11-26 15:35:48 +000017#else
18#define LOG_MSG(...)
19#endif
Summer Qin77894232020-08-28 11:24:15 +080020
21#endif /* __TFM_LOG_H__ */