Skip to content

Commit

Permalink
improved debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed May 3, 2024
1 parent 96a7c24 commit dfc83d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dfc83d0

Please sign in to comment.