From b44cd5885c1a1b32477445168bb317ecd9fea41d Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 31 Jan 2012 15:31:23 +0400 Subject: [PATCH] proc_parse.c: fix printf format warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Cyrill Gorcunov --- proc_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proc_parse.c b/proc_parse.c index 85c449353..c875769a9 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -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; }