瀏覽代碼

[log.h] Adding LOG_INFO

Vinicius Teshima 1 年之前
父節點
當前提交
17029a94ab
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      include/toolbox/log.h

+ 4 - 1
include/toolbox/log.h

@@ -8,6 +8,9 @@
 #endif
 
 #define LOG_ERROR(TXT)						\
-	fprintf(ERRFILE, "[ERROR] %s: %s", __FILE__, TXT)	\
+	fprintf(stderr, "[ERROR] %s: %s", __FILE__, TXT)	\
+
+#define LOG_INFO(TXT)						\
+	fprintf(stdout, "[INFO] %s: %s", __FILE__, TXT)	\
 
 #endif