summaryrefslogtreecommitdiffstats
path: root/jnlib
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-08-29 18:18:30 +0200
committerWerner Koch <wk@gnupg.org>2006-08-29 18:18:30 +0200
commitd8602648b8c27a008dfaef981cc35cf9107976bb (patch)
tree86a948495992bd0a2da7eb0e4b6e102108814d70 /jnlib
parentAllow for 4k ssh keys and better error reporting. (diff)
downloadgnupg2-d8602648b8c27a008dfaef981cc35cf9107976bb.tar.xz
gnupg2-d8602648b8c27a008dfaef981cc35cf9107976bb.zip
See ChangeLogs
Diffstat (limited to 'jnlib')
-rw-r--r--jnlib/ChangeLog4
-rw-r--r--jnlib/logging.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/jnlib/ChangeLog b/jnlib/ChangeLog
index 5511dedcd..f601d9b14 100644
--- a/jnlib/ChangeLog
+++ b/jnlib/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-29 Werner Koch <wk@g10code.com>
+
+ * logging.c (do_logv): Emit a missing LF for fatal errors.
+
2006-06-28 Werner Koch <wk@g10code.com>
* dotlock.c (make_dotlock, release_dotlock, read_lockfile)
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