summaryrefslogtreecommitdiff
path: root/src/shared/journal-importer.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-03 23:56:17 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-05 02:43:56 +0900
commit4bbccb02eaee35e20d3031e7ba4b3d08631ce934 (patch)
tree27fed6568b9faa5a2586c5929159b79a4002c294 /src/shared/journal-importer.c
parent7fa6223f67662e8d5ee26092240b4e1d091a69f5 (diff)
downloadsystemd-4bbccb02eaee35e20d3031e7ba4b3d08631ce934.tar.gz
tree-wide: introduce strerror_safe()
Diffstat (limited to 'src/shared/journal-importer.c')
-rw-r--r--src/shared/journal-importer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c
index 218fbe9057..44032548ad 100644
--- a/src/shared/journal-importer.c
+++ b/src/shared/journal-importer.c
@@ -4,6 +4,7 @@
#include <unistd.h>
#include "alloc-util.h"
+#include "errno-util.h"
#include "escape.h"
#include "fd-util.h"
#include "io-util.h"
@@ -422,7 +423,7 @@ int journal_importer_push_data(JournalImporter *imp, const char *data, size_t si
"Failed to store received data of size %zu "
"(in addition to existing %zu bytes with %zu filled): %s",
size, imp->size, imp->filled,
- strerror(ENOMEM));
+ strerror_safe(ENOMEM));
memcpy(imp->buf + imp->filled, data, size);
imp->filled += size;