printk: add macro for conditional trace-level printk statements
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef TRACE
|
||||
#define tracek(...) printk(__VA_ARGS__)
|
||||
#else
|
||||
#define tracek(...)
|
||||
#endif
|
||||
|
||||
extern void early_printk_init(struct console *con);
|
||||
extern int printk(const char *format, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user