summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-22 20:51:29 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-24 00:25:04 -0400
commitc79bb9e4e2e5b96b2ae2c432bf8b0ff9674fce60 (patch)
treef33c7648a76b5c19bbae7b08fe567c0cefa0d265 /src/core
parentfff87a35d9e26c0d4ea41273a963c0eb20e18da4 (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mount-setup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index a0fd7a078f..89adb0b4a3 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -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;