[2/2] vz7: crit: Use lu for pagemap images

Submitted by Cyrill Gorcunov on Oct. 18, 2017, 10:01 a.m.

Details

Message ID 1508320902-26535-3-git-send-email-gorcunov@virtuozzo.com
State New
Series "vz7: Fix id trimming in pagemap- images"
Headers show

Commit Message

Cyrill Gorcunov Oct. 18, 2017, 10:01 a.m.
https://jira.sw.ru/browse/PSBM-75112

Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>
---
 crit/crit       | 2 +-
 criu/cr-dedup.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/crit/crit b/crit/crit
index a6a6832..6b42fa2 100755
--- a/crit/crit
+++ b/crit/crit
@@ -217,7 +217,7 @@  files_cache = { }
 	for p in ps_img['entries']:
 		pid = p['pid']
 		vmas = pycriu.images.load(dinf(opts, 'mm-%d.img' % pid))['entries'][0]['vmas']
-		pms = pycriu.images.load(dinf(opts, 'pagemap-%d.img' % pid))['entries']
+		pms = pycriu.images.load(dinf(opts, 'pagemap-%lu.img' % pid))['entries']
 
 		print "%d" % pid
 		vmi = 0
diff --git a/criu/cr-dedup.c b/criu/cr-dedup.c
index 93af9be..a1b0eff 100644
--- a/criu/cr-dedup.c
+++ b/criu/cr-dedup.c
@@ -13,7 +13,7 @@  static int cr_dedup_one_pagemap(unsigned long id, int flags);
 int cr_dedup(void)
 {
 	int close_ret, ret = 0;
-	int id;
+	unsigned long id;
 	DIR * dirp;
 	struct dirent *ent;