diff --git a/kernel/common/kprint.h b/kernel/common/kprint.h index 51cf8814..c49306ce 100644 --- a/kernel/common/kprint.h +++ b/kernel/common/kprint.h @@ -57,3 +57,12 @@ printk("\n"); \ } while (0); +#define kBUG(...) \ + do \ + { \ + printk("[ "); \ + printk_color(RED, BLACK, "BUG"); \ + printk(" ] "); \ + printk(__VA_ARGS__); \ + printk("\n"); \ + } while (0);