10 Debug_Assert("ASSERT("#_x"): %s %s:%d\n", \
11 __FUNCTION__, __FILE__, __LINE__); \
13#define NOT_IMPLEMENTED() \
15 Debug_Assert("NOT_IMPLEMENTED(): %s %s:%d\n", \
16 __FUNCTION__, __FILE__, __LINE__); \
22int kprintf(
const char *fmt, ...);
25#define static_assert _Static_assert
28#define Alert(_module, _format, ...) kprintf(#_module ": " _format, ##__VA_ARGS__)
30#define Warning(_module, _format, ...) kprintf(#_module ": " _format, ##__VA_ARGS__)
32#define Log(_module, _format, ...) \
33 if (SYSCTL_GETINT(log_##_module) >= 1) { \
34 kprintf(#_module ": " _format, ##__VA_ARGS__); \
37#define DLOG(_module, _format, ...) \
38 if (SYSCTL_GETINT(log_##_module) >= 5) { \
39 kprintf(#_module ": " _format, ##__VA_ARGS__); \
42#define VLOG(_module, _format, ...) \
43 if (SYSCTL_GETINT(log_##_module) >= 10) { \
44 kprintf(#_module ": " _format, ##__VA_ARGS__); \
NO_RETURN void Debug_Assert(const char *fmt,...)
NO_RETURN void Panic(const char *str)
int kprintf(const char *fmt,...)