aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'jnlib/logging.c')
-rw-r--r--jnlib/logging.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/jnlib/logging.c b/jnlib/logging.c
index 20ba02ccd..568c67247 100644
--- a/jnlib/logging.c
+++ b/jnlib/logging.c
@@ -486,9 +486,17 @@ do_logv (int level, const char *fmt, va_list arg_ptr)
}
if (level == JNLIB_LOG_FATAL)
- exit(2);
+ {
+ if (missing_lf)
+ putc('\n', logstream );
+ exit(2);
+ }
if (level == JNLIB_LOG_BUG)
- abort();
+ {
+ if (missing_lf)
+ putc('\n', logstream );
+ abort();
+ }
}
static void