summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-10-25 01:47:39 +0900
committerRyo Nakamura <upa@haeena.net>2022-10-25 01:47:39 +0900
commit47f6983148047975e00f48b1ef77f8c4c7f2fd73 (patch)
tree5ce9ac01f3b8b9c2bd66c7ffad0ffca35ff89e72 /src/util.h
parentc83927cd5a56111a11c2f7879c6e444b31eddb27 (diff)
wrap print progress in pprint
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util.h b/src/util.h
index 2e8db26..cf4bee8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -8,20 +8,6 @@
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
-extern int verbose;
-
-#define pr_v(level, fmt, ...) do { \
- if (verbose >= level) { \
- fprintf(stdout, "\x1b[1m\x1b[34m" \
- "%s(): \x1b[0m" fmt, \
- __func__, ##__VA_ARGS__); \
- } \
- } while (0)
-
-#define pr_v1(fmt, ...) pr_v(1, fmt, ##__VA_ARGS__)
-#define pr_v2(fmt, ...) pr_v(2, fmt, ##__VA_ARGS__)
-#define pr_v3(fmt, ...) pr_v(3, fmt, ##__VA_ARGS__)
-
#define pr(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)