[CRIU] [PATCH] shmem: use PRI64 to print u64

Andrey Vagin avagin at openvz.org
Tue May 24 15:36:19 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

shmem.c:290:4: note: in expansion of macro 'pr_err'
    pr_err("Shmem %lx already collected as SYSVIPC\n", vi->shmid);
    ^

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/shmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/shmem.c b/criu/shmem.c
index 35c0ff5..8b19be8 100644
--- a/criu/shmem.c
+++ b/criu/shmem.c
@@ -287,7 +287,7 @@ int collect_shmem(int pid, struct vma_area *vma)
 	si = shmem_find(vi->shmid);
 	if (si) {
 		if (si->pid == SYSVIPC_SHMEM_PID) {
-			pr_err("Shmem %lx already collected as SYSVIPC\n", vi->shmid);
+			pr_err("Shmem 0x%"PRIx64" already collected as SYSVIPC\n", vi->shmid);
 			return -1;
 		}
 
-- 
2.7.4



More information about the CRIU mailing list