aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com> 2021-01-03 04:51:15 -0500
committerMax Rees <maxcrees@me.com> 2021-01-03 04:51:55 -0500
commit07d32a6c76b36c8e53ed648b3060a64ee37136ab (patch)
tree216740c59ebb67f9f41076e7fa88b30c7c7053e6
parent2cebe1786b82efe42561ac79bc0441efcdbe82ed (diff)
comproot: check .verbose with >= instead of >
Makes it easier to think about how many -v are given
-rw-r--r--src/comproot.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comproot.h b/src/comproot.h
index 27c13fa..3445c75 100644
--- a/src/comproot.h
+++ b/src/comproot.h
@@ -32,11 +32,11 @@ extern struct comproot comproot;
#define PWARN(pid, fmt, ...) _LOGFN_W(comproot.verbose, warn, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
#define PWARNX(pid, fmt, ...) _LOGFN_W(comproot.verbose, warnx, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
-#define DBG(fmt, ...) _LOGFN_W(comproot.verbose > 1, warn, fmt, ##__VA_ARGS__)
-#define DBGX(fmt, ...) _LOGFN_W(comproot.verbose > 1, warnx, fmt, ##__VA_ARGS__)
+#define DBG(fmt, ...) _LOGFN_W(comproot.verbose >= 2, warn, fmt, ##__VA_ARGS__)
+#define DBGX(fmt, ...) _LOGFN_W(comproot.verbose >= 2, warnx, fmt, ##__VA_ARGS__)
-#define PDBG(pid, fmt, ...) _LOGFN_W(comproot.verbose > 1, warn, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
-#define PDBGX(pid, fmt, ...) _LOGFN_W(comproot.verbose > 1, warnx, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
+#define PDBG(pid, fmt, ...) _LOGFN_W(comproot.verbose >= 2, warn, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
+#define PDBGX(pid, fmt, ...) _LOGFN_W(comproot.verbose >= 2, warnx, "[%jd] "fmt, (intmax_t)pid, ##__VA_ARGS__)
#define A_HANDLER_FD int HANDLER_FD
#define A_HANDLER_REQ struct seccomp_notif *HANDLER_REQ