diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/load-dropin.c | 2 | ||||
-rw-r--r-- | src/core/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c index 0abac9584d..8da4adc9a2 100644 --- a/src/core/load-dropin.c +++ b/src/core/load-dropin.c @@ -71,7 +71,7 @@ static int iterate_dir( de = readdir(d); if (!de && errno != 0) { k = errno; - log_error("Failed to read directory %s: %s", path, strerror(k)); + log_error_errno(k, "Failed to read directory %s: %m", path); return -k; } diff --git a/src/core/main.c b/src/core/main.c index 30de748452..c204758d43 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -354,7 +354,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { if (env) arg_default_environment = env; else - log_warning("Setting environment variable '%s' failed, ignoring: %s", value, strerror(ENOMEM)); + log_warning_errno(ENOMEM, "Setting environment variable '%s' failed, ignoring: %m", value); } else log_warning("Environment variable name '%s' is not valid. Ignoring.", value); |