diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-10-22 21:05:12 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-10-22 21:05:12 +0900 |
commit | c38197d7957945b6a77edf9f23846fb8bd018946 (patch) | |
tree | a38c73ed1166e0e44123cb6cd9800bbd37666bc8 /src | |
parent | 273f4a84078b8cdb4fb781e09e3234a835f26958 (diff) |
change color in pr_ funcs
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,17 +27,17 @@ extern int verbose; __func__, ##__VA_ARGS__) #define pr_warn(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \ - "WARN:%s(): " fmt "\x1b[0m", \ + "WARN:%s():\x1b[0m " fmt, \ __func__, ##__VA_ARGS__) #define pr_err(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[31m" \ - "ERR:%s(): " fmt "\x1b[0m", \ + "ERR:%s():\x1b[0m " fmt, \ __func__, ##__VA_ARGS__) #ifdef DEBUG #define pr_debug(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \ - "DEBUG:%s(): " fmt "\x1b[0m", \ - __func__, ##__VA_ARGS__); + "DEBUG:%s():\x1b[0m " fmt, \ + __func__, ##__VA_ARGS__); #else #define pr_debug(fmt, ...) #endif |