Commit 1408ead8 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Cyrill Gorcunov

Assorted trivial message fixes

* kid -> child
* First letter should be uppercase
* Misc typos in messages and comments
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent ad3bc057
......@@ -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;
}
}
......
......@@ -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;
}
}
......
......@@ -71,7 +71,7 @@ static int prepare_uts_str(int fd, char *n)
return -1;
}
pr_info("Restoging %s to [%s]\n", n, str);
pr_info("Restoring %s to [%s]\n", n, str);
ret = write(fd, str, len);
close(fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment