Commit b44cd588 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Cyrill Gorcunov

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: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 9e082442
...@@ -72,7 +72,7 @@ int parse_maps(pid_t pid, int pid_dir, struct list_head *vma_area_list, bool use ...@@ -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); vma_area->vm_file_fd = openat(dirfd(map_files_dir), path, O_RDONLY);
if (vma_area->vm_file_fd < 0) { if (vma_area->vm_file_fd < 0) {
if (errno != ENOENT) { 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; goto err;
} }
} }
...@@ -115,11 +115,11 @@ int parse_maps(pid_t pid, int pid_dir, struct list_head *vma_area_list, bool use ...@@ -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 (vma_area->vm_file_fd >= 0) {
if (fstat(vma_area->vm_file_fd, &st_buf) < 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; goto err;
} }
if (!S_ISREG(st_buf.st_mode)) { 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; goto err;
} }
......
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