Standarize on one spelling of symlink error message

It's polite to print the name of the link that wasn't created,
and it makes little sense to print the target.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-04-22 20:51:29 -04:00
parent fff87a35d9
commit c79bb9e4e2
7 changed files with 11 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ static int create_disk(
mkdir_parents_label(to, 0755);
if (symlink(from, to) < 0) {
log_error("Failed to create symlink '%s' to '%s': %m", from, to);
log_error("Failed to create symlink %s: %m", to);
return -errno;
}
@@ -193,7 +193,7 @@ static int create_disk(
mkdir_parents_label(to, 0755);
if (symlink(from, to) < 0) {
log_error("Failed to create symlink '%s' to '%s': %m", from, to);
log_error("Failed to create symlink %s: %m", to);
return -errno;
}
}
@@ -209,7 +209,7 @@ static int create_disk(
mkdir_parents_label(to, 0755);
if (symlink(from, to) < 0) {
log_error("Failed to create symlink '%s' to '%s': %m", from, to);
log_error("Failed to create symlink %s: %m", to);
return -errno;
}