summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2017-04-23 01:03:42 +0200
committerGitHub <noreply@github.com>2017-04-23 01:03:42 +0200
commit74e941c0226a04e2c6b80dd149d0f55e518481ed (patch)
treecffadb1c7096b0209e01fa676e74ad301b1985c7 /src/coredump
parent56744c037da0ba2032fba0c7ac116317bb5ae4ae (diff)
parentae2173d66b8b9fc42f311d8586a3cf4abcc65a76 (diff)
downloadsystemd-74e941c0226a04e2c6b80dd149d0f55e518481ed.tar.gz
Merge pull request #5774 from keszybz/printf-annotations
Printf annotation improvements
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 894feae4c7..a2c62e55a5 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -800,12 +800,11 @@ log:
if (journald_crash) {
/* We cannot log to the journal, so just print the MESSAGE.
* The target was set previously to something safe. */
- log_struct(LOG_ERR, core_message, NULL);
+ log_dispatch(LOG_ERR, 0, core_message);
return 0;
}
- if (core_message)
- IOVEC_SET_STRING(iovec[n_iovec++], core_message);
+ IOVEC_SET_STRING(iovec[n_iovec++], core_message);
if (truncated)
IOVEC_SET_STRING(iovec[n_iovec++], "COREDUMP_TRUNCATED=1");