| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef _CONSOLE_DEBUG_H_ |
| 4 | #define _CONSOLE_DEBUG_H_ |
| 5 | |
| 6 | #if CONFIG(DEBUG_FUNC) |
| 7 | #include <console/console.h> |
| 8 | |
| 9 | #define FUNC_ENTER() \ |
| 10 | printk(BIOS_SPEW, "%s:%s:%d: ENTER\n", __FILE__, __func__, __LINE__) |
| 11 | |
| 12 | #define FUNC_EXIT() \ |
| 13 | printk(BIOS_SPEW, "%s:%s:%d: EXIT\n", __FILE__, __func__, __LINE__) |
| 14 | |
| 15 | #else /* FUNC_DEBUG */ |
| 16 | |
| 17 | #define FUNC_ENTER() |
| 18 | #define FUNC_EXIT() |
| 19 | |
| 20 | #endif /* FUNC_DEBUG */ |
| 21 | |
| 22 | #endif |