fix an issue with very high log levels

This commit is contained in:
Nick Chan committed 2023-01-18 16:06:12 +08:00
1 parent f67415067f
commit f2667fe32f
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ int p1_log(log_level_t loglevel, const char *fname, int lineno, const char *fxna
int ret = 0;
va_list args;
va_start(args, format);
if (verbose >= 2)
if (verbose >= 2 && verbose >= (loglevel - 3))
printf(BLU "%s:%d: " BMAG "%s(): \n--> " WHT, fname, lineno, fxname);
switch (loglevel) {
case LOG_FATAL: