Browse Source

增加了ksuccess输出

fslongjin 2 years ago
parent
commit
2d1965fa2d
1 changed files with 10 additions and 0 deletions
  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                       \
     {                        \