diff --git a/nemu/include/debug.h b/nemu/include/debug.h index 835f8dc..7a2cd8a 100644 --- a/nemu/include/debug.h +++ b/nemu/include/debug.h @@ -21,15 +21,15 @@ #include #define Log(format, ...) \ - _Log(ANSI_FMT("[INFO] %s:%d %s" 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("[WARNING] %s:%d %s" 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("[ERROR] %s:%d %s" 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, ...) \