[CRIU] [PATCH 03/13] image-desc: Fix fdinfo format

Cyrill Gorcunov gorcunov at openvz.org
Fri Oct 20 00:59:34 MSK 2017


We pass unsigned 4 byte integer here, so
use appropriate format.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/image-desc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/image-desc.c b/criu/image-desc.c
index c46679811d7a..2000fa085eec 100644
--- a/criu/image-desc.c
+++ b/criu/image-desc.c
@@ -26,7 +26,7 @@
 
 struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
 	FD_ENTRY(INVENTORY,	"inventory"),
-	FD_ENTRY(FDINFO,	"fdinfo-%d"),
+	FD_ENTRY(FDINFO,	"fdinfo-%u"),
 	FD_ENTRY(PAGEMAP,	"pagemap-%ld"),
 	FD_ENTRY(SHMEM_PAGEMAP,	"pagemap-shmem-%ld"),
 	FD_ENTRY(REG_FILES,	"reg-files"),
-- 
2.7.5



More information about the CRIU mailing list