printk: add macro for conditional trace-level printk statements

This commit is contained in:
2026-02-08 12:48:33 +00:00
parent 687ba31d55
commit 0d73196b4b

View File

@@ -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, ...);