aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 06c3614..a34c8e8 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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);