summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/log.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index 00589a3c..5dd7ef7f 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -107,19 +107,29 @@ log(char *msg, ...)
va_list args;
va_start(args, msg);
- if (*msg >= 1 && *msg <= 6)
+ if (*msg >= 1 && *msg <= 8)
class = *msg++;
vlog(class, msg, args);
va_end(args);
}
void
+bug(char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+ vlog(L_BUG[0], msg, args);
+ exit(1);
+}
+
+void
die(char *msg, ...)
{
va_list args;
va_start(args, msg);
- vlog(6, msg, args);
+ vlog(L_FATAL[0], msg, args);
exit(1);
}