mirror of
https://github.com/upa/mscp.git
synced 2026-05-13 22:07:29 +08:00
change color in pr_ funcs
This commit is contained in:
@@ -27,17 +27,17 @@ extern int verbose;
|
|||||||
__func__, ##__VA_ARGS__)
|
__func__, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define pr_warn(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \
|
#define pr_warn(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \
|
||||||
"WARN:%s(): " fmt "\x1b[0m", \
|
"WARN:%s():\x1b[0m " fmt, \
|
||||||
__func__, ##__VA_ARGS__)
|
__func__, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define pr_err(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[31m" \
|
#define pr_err(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[31m" \
|
||||||
"ERR:%s(): " fmt "\x1b[0m", \
|
"ERR:%s():\x1b[0m " fmt, \
|
||||||
__func__, ##__VA_ARGS__)
|
__func__, ##__VA_ARGS__)
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define pr_debug(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \
|
#define pr_debug(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \
|
||||||
"DEBUG:%s(): " fmt "\x1b[0m", \
|
"DEBUG:%s():\x1b[0m " fmt, \
|
||||||
__func__, ##__VA_ARGS__);
|
__func__, ##__VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
#define pr_debug(fmt, ...)
|
#define pr_debug(fmt, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user