treewide: more log_*_errno() conversions

This commit is contained in:
Michal Schmidt
2014-11-28 14:45:55 +01:00
parent ff49bc3212
commit 279d3c9cea
7 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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);