Summer Qin | 7789423 | 2020-08-28 11:24:15 +0800 | [diff] [blame] | 1 | /* |
Jackson Cooper-Driver | 290b88f | 2025-07-09 09:18:13 +0100 | [diff] [blame] | 2 | * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors |
Summer Qin | 7789423 | 2020-08-28 11:24:15 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TFM_LOG_H__ |
| 9 | #define __TFM_LOG_H__ |
| 10 | |
Jackson Cooper-Driver | ebf5261 | 2025-07-09 11:54:56 +0100 | [diff] [blame^] | 11 | #include <stdio.h> |
Summer Qin | 7789423 | 2020-08-28 11:24:15 +0800 | [diff] [blame] | 12 | |
| 13 | /* Functions and macros in this file is for 'thread mode' usage. */ |
| 14 | |
David Vincze | fa2f53a | 2024-11-26 15:35:48 +0000 | [diff] [blame] | 15 | #ifdef TFM_NS_LOG |
Jackson Cooper-Driver | ebf5261 | 2025-07-09 11:54:56 +0100 | [diff] [blame^] | 16 | #define LOG_MSG(...) printf(__VA_ARGS__) |
David Vincze | fa2f53a | 2024-11-26 15:35:48 +0000 | [diff] [blame] | 17 | #else |
| 18 | #define LOG_MSG(...) |
| 19 | #endif |
Summer Qin | 7789423 | 2020-08-28 11:24:15 +0800 | [diff] [blame] | 20 | |
| 21 | #endif /* __TFM_LOG_H__ */ |