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-24 00:25:04 -04:00
parent fff87a35d9
commit c79bb9e4e2
7 changed files with 11 additions and 16 deletions
+2 -4
View File
@@ -334,7 +334,7 @@ int mount_cgroup_controllers(char ***join_controllers) {
char **i;
for (i = *k; *i; i++) {
char *t;
_cleanup_free_ char *t;
t = strappend("/sys/fs/cgroup/", *i);
if (!t) {
@@ -344,10 +344,8 @@ int mount_cgroup_controllers(char ***join_controllers) {
}
r = symlink(options, t);
free(t);
if (r < 0 && errno != EEXIST) {
log_error("Failed to create symlink: %m");
log_error("Failed to create symlink %s: %m", t);
r = -errno;
free(options);
goto finish;