[CRIU] [crtools-bot] proc_parse.c: fix printf format warnings

Cyrill Gorcunov gorcunov at openvz.org
Tue Jan 31 06:56:56 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit b44cd5885c1a1b32477445168bb317ecd9fea41d
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Tue Jan 31 15:31:23 2012 +0400

    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 at openvz.org>
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 proc_parse.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/proc_parse.c b/proc_parse.c
index 85c4493..c875769 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;
 			}
 


More information about the CRIU mailing list