summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/log.c b/log.c
index 12898f4..779fa4b 100644
--- a/log.c
+++ b/log.c
@@ -26,3 +26,10 @@ void vprintlog(log_output output_type, int priority, const char *fmt, va_list ar
}
free(buf);
}
+
+void printlog(log_output output_type, int priority, const char *fmt, ...) {
+ va_list args;
+ va_start(args, fmt);
+ vprintlog(output_type, priority, fmt, args);
+ va_end(args);
+}