DiskTool - Adding action interface, module loading (for filesystems)
[tpg/acess2.git] / Tools / DiskTool / src / logging.c
index 1517b65..8f627f2 100644 (file)
@@ -7,11 +7,11 @@
 #include <acess_logging.h>
 
 #define PUTERR(col,type)       {\
-       fprintf(stderr, "\e["col"m[%8.8s]"type" ", Ident); \
+       fprintf(stderr, "\e["col"m[%-8.8s]"type" ", Ident); \
        va_list args; va_start(args, Message);\
        vfprintf(stderr, Message, args);\
        va_end(args);\
-       fprintf(stderr, "\n"); \
+       fprintf(stderr, "\e[0m\n"); \
 }
 
 // === CODE ===
@@ -20,17 +20,17 @@ void Log_KernelPanic(const char *Ident, const char *Message, ...) {
        exit(-1);
 }
 void Log_Panic(const char *Ident, const char *Message, ...)
-       PUTERR("37", "p")
+       PUTERR("34", "p")
 void Log_Error(const char *Ident, const char *Message, ...)
-       PUTERR("32", "e")
+       PUTERR("31", "e")
 void Log_Warning(const char *Ident, const char *Message, ...)
-       PUTERR("34", "w")
+       PUTERR("33", "w")
 void Log_Notice(const char *Ident, const char *Message, ...)
-       PUTERR("33", "n")
+       PUTERR("32", "n")
 void Log_Log(const char *Ident, const char *Message, ...)
-       PUTERR("31", "l")
+       PUTERR("37", "l")
 void Log_Debug(const char *Ident, const char *Message, ...)
-       PUTERR("31", "d")
+       PUTERR("37", "d")
 
 void Warning(const char *Message, ...) {
        const char *Ident = "WARNING";

UCC git Repository :: git.ucc.asn.au