Skip to content

Commit

Permalink
cgfs: Log the whole cgroup path too
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Jun 10, 2014
1 parent b7aa56b commit b38b62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/cgfs.c
Expand Up @@ -953,15 +953,15 @@ 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 */
r = lxc_grow_array((void ***)&info_ptr->created_paths, &info_ptr->created_paths_capacity, info_ptr->created_paths_count + 1, 8);
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;
Expand Down

0 comments on commit b38b62a

Please sign in to comment.