瀏覽代碼

增加了ksuccess输出

fslongjin 3 年之前
父節點
當前提交
2d1965fa2d
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      kernel/common/kprint.h

+ 10 - 0
kernel/common/kprint.h

@@ -11,6 +11,16 @@
 #pragma once
 #include "printk.h"
 
+#define ksuccess(...)                           \
+    do                                       \
+    {                                        \
+        printk("[ ");                        \
+        printk_color(GREEN, BLACK, "SUCCESS"); \
+        printk(" ] ");                       \
+        printk(__VA_ARGS__);                 \
+        printk("\n");                        \
+    } while (0);
+
 #define kinfo(...)           \
     do                       \
     {                        \