mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
Assorted trivial message fixes
* kid -> child * First letter should be uppercase * Misc typos in messages and comments Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
ad3bc05771
commit
1408ead858
@@ -1123,7 +1123,7 @@ static int dump_one_zombie(struct pstree_item *item, struct proc_pid_stat *pps,
|
||||
struct core_entry *core;
|
||||
|
||||
if (item->nr_children) {
|
||||
pr_err("Zombie %d with kids?\n", item->pid);
|
||||
pr_err("Zombie %d with children.\n", item->pid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@@ -865,7 +865,7 @@ static int attach_pipe(int pid, struct pipe_entry *e, struct pipe_info *pi, int
|
||||
char path[128];
|
||||
int tmp, fd;
|
||||
|
||||
pr_info("\t%d: Wating for pipe %x to appear\n",
|
||||
pr_info("\t%d: Waiting for pipe %x to appear\n",
|
||||
pid, e->pipeid);
|
||||
|
||||
cr_wait_while(&pi->real_pid, 0);
|
||||
@@ -1231,7 +1231,7 @@ static inline int fork_with_pid(int pid, unsigned long ns_clone_flags)
|
||||
stack = mmap(NULL, STACK_SIZE, PROT_WRITE | PROT_READ,
|
||||
MAP_PRIVATE | MAP_GROWSDOWN | MAP_ANONYMOUS, -1, 0);
|
||||
if (stack == MAP_FAILED) {
|
||||
pr_perror("Failed to map stack for kid");
|
||||
pr_perror("Failed to map stack for the child");
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
@@ -326,7 +326,8 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
case 'D':
|
||||
if (chdir(optarg)) {
|
||||
pr_perror("can't change working directory");
|
||||
pr_perror("Can't change directory to %s",
|
||||
optarg);
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@@ -411,6 +412,6 @@ usage:
|
||||
return -1;
|
||||
|
||||
opt_pid_missing:
|
||||
printk("No pid specified, -t or -p option missed?\n");
|
||||
printk("No pid specified (-t or -p option missing)\n");
|
||||
return -1;
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ int parse_maps(pid_t pid, int pid_dir, struct list_head *vma_area_list, bool use
|
||||
if (use_map_files) {
|
||||
map_files_dir = opendir_proc(pid_dir, "map_files");
|
||||
if (!map_files_dir) {
|
||||
pr_err("Can't open %d's, old kernel?\n", pid);
|
||||
pr_perror("Can't open %d's map_files (old kernel?)\n", pid);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
@@ -72,7 +72,7 @@ int parse_maps(pid_t pid, int pid_dir, struct list_head *vma_area_list, bool use
|
||||
vma_area->vm_file_fd = openat(dirfd(map_files_dir), path, O_RDONLY);
|
||||
if (vma_area->vm_file_fd < 0) {
|
||||
if (errno != ENOENT) {
|
||||
pr_perror("Failed opening %d's map %lu", pid, start);
|
||||
pr_perror("Can't open %d's map %lu", pid, start);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
8
util.c
8
util.c
@@ -100,7 +100,7 @@ int close_safe(int *fd)
|
||||
if (!ret)
|
||||
*fd = -1;
|
||||
else
|
||||
pr_perror("Unable to close fd: %d", *fd);
|
||||
pr_perror("Unable to close fd %d", *fd);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -116,11 +116,11 @@ int reopen_fd_as_safe(int new_fd, int old_fd, bool allow_reuse_fd)
|
||||
if (fcntl(new_fd, F_GETFD) != -1 || errno != EBADF) {
|
||||
if (new_fd < 3) {
|
||||
/*
|
||||
* Standart descriptors.
|
||||
* Standard descriptors.
|
||||
*/
|
||||
pr_warning("fd = %d is already used\n", new_fd);
|
||||
pr_warning("fd %d already in use\n", new_fd);
|
||||
} else {
|
||||
pr_err("fd = %d is already used\n", new_fd);
|
||||
pr_err("fd %d already in use\n", new_fd);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user