[CRIU] [PATCH v2 2/6] ppc64: Fix error message

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed Aug 31 09:15:09 PDT 2016


Don't display an error message when the checkpointed data read at
restart time are corrupted.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 criu/arch/ppc64/crtools.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/arch/ppc64/crtools.c b/criu/arch/ppc64/crtools.c
index dedd80db5403..1b40404f0755 100644
--- a/criu/arch/ppc64/crtools.c
+++ b/criu/arch/ppc64/crtools.c
@@ -451,7 +451,7 @@ int restore_fpu(struct rt_sigframe *sigframe, CoreEntry *core)
 		ret = put_altivec_regs(&sigframe->uc.uc_mcontext,
 				       CORE_THREAD_ARCH_INFO(core)->vrstate);
 	else if (core->ti_ppc64->gpregs->msr & MSR_VEC) {
-		pr_err("Internal error\n");
+		pr_err("Register's data mismatch, corrupted image ?\n");
 		ret = -1;
 	}
 
@@ -459,7 +459,7 @@ int restore_fpu(struct rt_sigframe *sigframe, CoreEntry *core)
 		ret = put_vsx_regs(&sigframe->uc.uc_mcontext,
 				   CORE_THREAD_ARCH_INFO(core)->vsxstate);
 	else if (core->ti_ppc64->gpregs->msr & MSR_VSX) {
-		pr_err("Internal error\n");
+		pr_err("VSX register's data mismatch, corrupted image ?\n");
 		ret = -1;
 	}
 
-- 
2.7.4



More information about the CRIU mailing list