[CRIU] [PATCH] Fix minor printf format
Laurent Dufour
ldufour at linux.vnet.ibm.com
Tue Jul 19 09:13:44 PDT 2016
In cr-restore printf() format is mixing "%p" and the prefix "0x" which is
already managed by "%p". This leads to log lines like:
(00.053282) 38744: Found bootstrap VMA hint at: 0x0x100000 (needs ~576K)
Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
criu/cr-restore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index b4b703880e38..645160d1b483 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -2918,7 +2918,7 @@ static int sigreturn_restore(pid_t pid, struct task_restore_args *task_args, uns
goto err;
}
- pr_info("Found bootstrap VMA hint at: 0x%p (needs ~%ldK)\n",
+ pr_info("Found bootstrap VMA hint at: %p (needs ~%ldK)\n",
mem, KBYTES(task_args->bootstrap_len));
ret = remap_restorer_blob(mem);
--
2.7.4
More information about the CRIU
mailing list