[CRIU] [PATCH 11/18] x86: cpu -- Improve show_rt_xsave_frame

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 19 15:47:39 MSK 2018


For debug sake

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/arch/x86/crtools.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/criu/arch/x86/crtools.c b/criu/arch/x86/crtools.c
index bb25916f3519..385e7cfee7f0 100644
--- a/criu/arch/x86/crtools.c
+++ b/criu/arch/x86/crtools.c
@@ -336,14 +336,13 @@ static void show_rt_xsave_frame(struct xsave_struct *x)
 	pr_debug("xsave runtime structure\n");
 	pr_debug("-----------------------\n");
 
-	pr_debug("cwd:%x swd:%x twd:%x fop:%x mxcsr:%x mxcsr_mask:%x\n",
+	pr_debug("cwd:%#x swd:%#x twd:%#x fop:%#x mxcsr:%#x mxcsr_mask:%#x\n",
 		 (int)i387->cwd, (int)i387->swd, (int)i387->twd,
 		 (int)i387->fop, (int)i387->mxcsr, (int)i387->mxcsr_mask);
 
-	pr_debug("magic1:%x extended_size:%x xstate_bv:%lx xstate_size:%x\n",
+	pr_debug("magic1:%#x extended_size:%u xstate_bv:%#lx xstate_size:%u\n",
 		 fpx->magic1, fpx->extended_size, (long)fpx->xstate_bv, fpx->xstate_size);
-
-	pr_debug("xstate_bv: %lx\n", (long)xsave_hdr->xstate_bv);
+	pr_debug("xstate_bv: %#lx\n", (long)xsave_hdr->xstate_bv);
 
 	pr_debug("-----------------------\n");
 }
-- 
2.14.4



More information about the CRIU mailing list