log: always log file:lineno

This commit is contained in:
Daniel Eklöf 2020-02-16 14:40:08 +01:00
parent 3e6321155e
commit cea75625e2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
log.c
View file

@ -65,11 +65,7 @@ _log(enum log_class log_class, const char *module, const char *file, int lineno,
if (colorize)
fprintf(stderr, "\e[2m");
#if defined(_DEBUG)
fprintf(stderr, "%s:%d: ", file, lineno);
#else
fprintf(stderr, "%s: ", module);
#endif
if (colorize)
fprintf(stderr, "\e[0m");