diff options
author | Marvin Borner | 2023-05-17 00:19:14 +0200 |
---|---|---|
committer | Marvin Borner | 2023-05-17 00:24:37 +0200 |
commit | f640ceee89836b56ac95c4eb1b0a43d1171c3354 (patch) | |
tree | 9deab5538634c983794a78e04b8e2cd5255711ab /src/log.c | |
parent | ae597603952e3e329eecc25512606a7fa85ea0ec (diff) |
General improvements
(nothing special, mainly cleanup and docs)
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -14,6 +14,8 @@ void debug(const char *format, ...) if (!debug_enabled) return; + fprintf(stderr, "[DEBUG] "); + va_list ap; va_start(ap, format); vfprintf(stderr, format, ap); @@ -27,6 +29,8 @@ void debug_enable(int enable) void fatal(const char *format, ...) { + fprintf(stderr, "[FATAL] "); + va_list ap; va_start(ap, format); vfprintf(stderr, format, ap); |