summaryrefslogtreecommitdiffstats
path: root/src/include/console/debug.h
blob: 174c287c6ae1a70beab25d422dce11ed8089a9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _CONSOLE_DEBUG_H_
#define _CONSOLE_DEBUG_H_

#if CONFIG(DEBUG_FUNC)
#include <console/console.h>

#define FUNC_ENTER() \
	printk(BIOS_SPEW, "%s:%s:%d: ENTER\n", __FILE__, __func__, __LINE__)

#define FUNC_EXIT() \
	printk(BIOS_SPEW, "%s:%s:%d: EXIT\n", __FILE__, __func__, __LINE__)

#else /* FUNC_DEBUG */

#define FUNC_ENTER()
#define FUNC_EXIT()

#endif /* FUNC_DEBUG */

#endif