mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
proc_parse.c: fix printf format warnings
proc_parse.c: In function ‘parse_maps’: proc_parse.c:75:6: error: format ‘%Lu’ expects type ‘long long unsigned int’, but argument 5 has type ‘u64’ proc_parse.c:118:5: error: format ‘%Lu’ expects type ‘long long unsigned int’, but argument 5 has type ‘u64’ Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
9e08244291
commit
b44cd5885c
1 changed files with 3 additions and 3 deletions
|
|
@ -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("Failed opening %d's map %lu", pid, start);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
|
@ -115,11 +115,11 @@ int parse_maps(pid_t pid, int pid_dir, struct list_head *vma_area_list, bool use
|
|||
if (vma_area->vm_file_fd >= 0) {
|
||||
|
||||
if (fstat(vma_area->vm_file_fd, &st_buf) < 0) {
|
||||
pr_perror("Failed fstat on %d's map %Lu", pid, start);
|
||||
pr_perror("Failed fstat on %d's map %lu", pid, start);
|
||||
goto err;
|
||||
}
|
||||
if (!S_ISREG(st_buf.st_mode)) {
|
||||
pr_err("Can't handle non-regular mapping on %d's map %Lu\n", pid, start);
|
||||
pr_err("Can't handle non-regular mapping on %d's map %lu\n", pid, start);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue