[CRIU] [PATCH] files: Print resource IDs in hex format

Cyrill Gorcunov gorcunov at openvz.org
Fri Apr 5 08:06:09 EDT 2013


We usually print resources IDs in hex format,
so fix the places where we don't (it confuses
otherwise).

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

diff --git a/files.c b/files.c
index 2de7eb0..8bd925c 100644
--- a/files.c
+++ b/files.c
@@ -381,7 +381,7 @@ static int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info)
 
 	fdesc = find_file_desc(e);
 	if (fdesc == NULL) {
-		pr_err("No file for fd %d id %d\n", e->fd, e->id);
+		pr_err("No file for fd %d id %#x\n", e->fd, e->id);
 		return -1;
 	}
 
-- 
1.8.1.4



More information about the CRIU mailing list