aboutsummaryrefslogtreecommitdiffstats
path: root/sway/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/log.c b/sway/log.c
index e8c1b78f..6e01421b 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -1,4 +1,5 @@
1#include "log.h" 1#include "log.h"
2#include "sway.h"
2#include <stdarg.h> 3#include <stdarg.h>
3#include <stdio.h> 4#include <stdio.h>
4#include <stdlib.h> 5#include <stdlib.h>
@@ -42,7 +43,7 @@ void sway_abort(const char *format, ...) {
42 vfprintf(stderr, format, args); 43 vfprintf(stderr, format, args);
43 va_end(args); 44 va_end(args);
44 fprintf(stderr, "\n"); 45 fprintf(stderr, "\n");
45 exit(1); 46 sway_terminate();
46} 47}
47 48
48void sway_log(int verbosity, const char* format, ...) { 49void sway_log(int verbosity, const char* format, ...) {