diff options
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | ||
48 | void sway_log(int verbosity, const char* format, ...) { | 49 | void sway_log(int verbosity, const char* format, ...) { |