Explorar o código

[log.h] Adding LOG_INFO

Vinicius Teshima hai 1 ano
pai
achega
17029a94ab
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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