tree-wide: fix incorrect uses of %m

In those cases errno was not set, so we would be logging some unrelated error
or "Success".
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-05-13 15:42:26 -04:00
parent 6e4177315f
commit 35bca925f9
6 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -2029,7 +2029,7 @@ static int determine_names(void) {
if (r < 0)
return log_error_errno(r, "Failed to find image for machine '%s': %m", arg_machine);
if (r == 0) {
log_error("No image for machine '%s': %m", arg_machine);
log_error("No image for machine '%s'.", arg_machine);
return -ENOENT;
}