summaryrefslogtreecommitdiffstats
path: root/src/lib/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/error.c')
-rw-r--r--src/lib/error.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/error.c b/src/lib/error.c
index 5eb6352..b32aa02 100644
--- a/src/lib/error.c
+++ b/src/lib/error.c
@@ -46,6 +46,16 @@ void err_quit(char *fmt, ...)
exit(1);
}
+void debug(char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ fputs("DEBUG: ", stderr);
+ err_doit(0, fmt, ap);
+ va_end(ap);
+}
+
void info(char *fmt, ...)
{
va_list ap;