diff --git a/nemu/include/debug.h b/nemu/include/debug.h index 0b422d2..f60e6f9 100644 --- a/nemu/include/debug.h +++ b/nemu/include/debug.h @@ -21,15 +21,15 @@ #include #define Log(format, ...) \ - _Log(ANSI_FMT("%s:%d %s [INFO]" format, ANSI_FG_BLUE) "\n", \ + _Log(ANSI_FMT("[INFO] %s:%d %s" format, ANSI_FG_BLUE) "\n", \ __FILE__, __LINE__, __func__, ## __VA_ARGS__) #define Warning(format, ...) \ - _Log(ANSI_FMT("%s:%d %s [WARNING]" format, ANSI_FG_YELLOW) "\n", \ + _Log(ANSI_FMT("[WARNING] %s:%d %s" format, ANSI_FG_YELLOW) "\n", \ __FILE__, __LINE__, __func__, ## __VA_ARGS__) #define Error(format, ...) \ - _Log(ANSI_FMT("%s:%d %s [ERROR] " format, ANSI_FG_RED) "\n", \ + _Log(ANSI_FMT("[ERROR] %s:%d %s" format, ANSI_FG_RED) "\n", \ __FILE__, __LINE__, __func__, ## __VA_ARGS__) #define Assert(cond, format, ...) \