mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix an issue with very high log levels
This commit is contained in:
1 parent
f67415067f
commit
f2667fe32f
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user