mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user