chore: use tab to separate log info

This commit is contained in:
Paul Pan 2022-10-04 18:43:28 +08:00
parent 32aa186d87
commit 3f0924871d

View File

@ -13,8 +13,8 @@
#define _LOG(color, level, fmt, ...) \
do { \
fprintf(stderr, \
color "[" level "](%d)(%s:%d): " fmt COLOR_STDOUT_RESET "\n", \
getpid(), __FILE__, __LINE__, ##__VA_ARGS__); \
color "[" level "]\t(%s:%d):\t" fmt COLOR_STDOUT_RESET "\n", \
__FILE__, __LINE__, ##__VA_ARGS__); \
} while (0)
#define LOG_INFO(fmt, ...) _LOG(COLOR_GREEN, "info", fmt, ##__VA_ARGS__)