improved debug message

This commit is contained in:
Fufu Fang 2024-05-03 06:24:19 +01:00
parent 96a7c248d3
commit dfc83d0e1c
No known key found for this signature in database
GPG Key ID: 8A4CB08B0A7E27CE
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ log_printf(LogType type, const char *file, const char *func, int line,
case info:
goto print_actual_message;
default:
fprintf(stderr, "Debug(%x):", type);
fprintf(stderr, "Debug");
if (type != debug) {
fprintf(stderr, "(%x)", type);
}
fprintf(stderr, ":");
break;
}