[CRIU] [PATCH 06/11] x86: Add explicit type conversion in show_rt_xsave_frame

Cyrill Gorcunov gorcunov at openvz.org
Wed Apr 22 10:20:01 PDT 2015


So won't be a warning on x86-32 (I don't like PRI conversion,
it's ugly as hell, plain long is enough here).

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/crtools.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/crtools.c b/arch/x86/crtools.c
index 02ce2e5bc2ce..e951280c1d63 100644
--- a/arch/x86/crtools.c
+++ b/arch/x86/crtools.c
@@ -361,9 +361,9 @@ static void show_rt_xsave_frame(struct xsave_struct *x)
 		 (int)i387->fop, (int)i387->mxcsr, (int)i387->mxcsr_mask);
 
 	pr_debug("magic1:%x extended_size:%x xstate_bv:%lx xstate_size:%x\n",
-		 fpx->magic1, fpx->extended_size, fpx->xstate_bv, fpx->xstate_size);
+		 fpx->magic1, fpx->extended_size, (long)fpx->xstate_bv, fpx->xstate_size);
 
-	pr_debug("xstate_bv: %lx\n", xsave_hdr->xstate_bv);
+	pr_debug("xstate_bv: %lx\n", (long)xsave_hdr->xstate_bv);
 
 	pr_debug("-----------------------\n");
 }
-- 
2.1.0



More information about the CRIU mailing list