Explorar o código

:new: kprint 增加kBUG

fslongjin %!s(int64=3) %!d(string=hai) anos
pai
achega
d06b418642
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      kernel/common/kprint.h

+ 9 - 0
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);