[CRIU] [PATCH 3/8] proc_parse.c: fix printf format warnings

Kir Kolyshkin kir at openvz.org
Tue Jan 31 06:31:23 EST 2012


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>
---
 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;
 			}
 
-- 
1.7.4.4




More information about the CRIU mailing list