blob: deee64ffe819758ef11c686555a6be6c77e74e12 [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
Jackson Cooper-Driverebf52612025-07-09 11:54:56 +010011#include <stdio.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
Jackson Cooper-Driverebf52612025-07-09 11:54:56 +010016#define LOG_MSG(...) 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__ */