[CRIU] [PATCH 1/2] cr-dump.c: fixed a format string warning on ARM

Alexander Kartashov alekskartashov at parallels.com
Thu Apr 4 12:28:52 EDT 2013


Use a PRI* format specifier to convert an integer of known size
to a string.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 cr-dump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-dump.c b/cr-dump.c
index c1992fd..4471cfb 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -338,7 +338,7 @@ static int check_sysvipc_map_dump(pid_t pid, VmaEntry *vma)
 	if (current_ns_mask & CLONE_NEWIPC)
 		return 0;
 
-	pr_err("Task %d with SysVIPC shmem map @%lx doesn't live in IPC ns\n",
+	pr_err("Task %d with SysVIPC shmem map @%"PRIx64" doesn't live in IPC ns\n",
 			pid, vma->start);
 	return -1;
 }
-- 
1.7.10.4



More information about the CRIU mailing list