]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfs: Log the whole cgroup path too
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Jun 2014 22:27:24 +0000 (18:27 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Jun 2014 20:12:56 +0000 (16:12 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgfs.c

index d59a305057f3938aa95a59b844770ff832227ba4..796b2202fe5154792e216c88714188e8046cc5ff 100644 (file)
@@ -953,7 +953,7 @@ static struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const c
                                current_entire_path = NULL;
                                goto cleanup_name_on_this_level;
                        } else if (r < 0 && errno != EEXIST) {
-                               SYSERROR("Could not create cgroup %s", current_entire_path);
+                               SYSERROR("Could not create cgroup '%s' in '%s'.", current_entire_path, info_ptr->designated_mount_point->mount_point);
                                goto cleanup_from_error;
                        } else if (r == 0) {
                                /* successfully created */
@@ -961,7 +961,7 @@ static struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const c
                                if (r < 0)
                                        goto cleanup_from_error;
                                if (!init_cpuset_if_needed(info_ptr->designated_mount_point, current_entire_path)) {
-                                       ERROR("Failed to initialize cpuset in new '%s'.", current_entire_path);
+                                       ERROR("Failed to initialize cpuset for '%s' in '%s'.", current_entire_path, info_ptr->designated_mount_point->mount_point);
                                        goto cleanup_from_error;
                                }
                                info_ptr->created_paths[info_ptr->created_paths_count++] = current_entire_path;