1 /* 2 * Copyright (c) 2021-2022, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef BL1_LOG_H 9 #define BL1_LOG_H 10 11 #include "uart_stdout.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #ifdef TFM_BL1_LOGGING 18 #define BL1_LOG(str) do { \ 19 const unsigned char msg[] = str; \ 20 stdio_output_string(msg, sizeof(msg) - 1); \ 21 } while (0) 22 #else 23 #define BL1_LOG(str) 24 #endif /* TFM_BL1_LOGGING */ 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* BL1_LOG_H */ 31