[CRIU] [PATCH] zdtm: Fix unlink_multiple_largefiles compilation on ppc64

Vitaly Ostrosablin vostrosablin at virtuozzo.com
Fri Apr 6 17:19:20 MSK 2018


Compiler wants arguments, explicitly casted to (long long) for %llx
specifier.

Signed-off-by: Vitaly Ostrosablin <vostrosablin at virtuozzo.com>
---
 test/zdtm/static/unlink_multiple_largefiles.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/zdtm/static/unlink_multiple_largefiles.c b/test/zdtm/static/unlink_multiple_largefiles.c
index 0db50b0b..e0c53d1d 100644
--- a/test/zdtm/static/unlink_multiple_largefiles.c
+++ b/test/zdtm/static/unlink_multiple_largefiles.c
@@ -83,21 +83,21 @@ void check_extent_map(struct fiemap *map)
 	for (i = 0; i < map->fm_mapped_extents; i++) {
 		test_msg("Extent %d, start %llx, length %llx\n",
 			i,
-			map->fm_extents[i].fe_logical,
-			map->fm_extents[i].fe_length);
+			(long long) map->fm_extents[i].fe_logical,
+			(long long) map->fm_extents[i].fe_length);
 
 		if (i == 0)
 			holesize = map->fm_extents[i].fe_logical;
 		datasize += map->fm_extents[i].fe_length;
 	}
 	if (holesize != FSIZE) {
-		pr_perror("Unexpected hole size %llx != %llx\n", holesize,
-				(unsigned long long) FSIZE);
+		pr_perror("Unexpected hole size %llx != %llx\n",
+			  (long long) holesize, (unsigned long long) FSIZE);
 		exit(1);
 	}
 	if (datasize != BUFSIZE) {
-		pr_perror("Unexpected data size %llx != %llx\n", datasize,
-				(unsigned long long) BUFSIZE);
+		pr_perror("Unexpected data size %llx != %llx\n",
+			  (long long) datasize, (unsigned long long) BUFSIZE);
 		exit(1);
 	}
 }
-- 
2.16.2



More information about the CRIU mailing list