From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcYS3-00041L-2Z for qemu-devel@nongnu.org; Wed, 24 Aug 2016 09:42:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcYRy-00035Q-Ju for qemu-devel@nongnu.org; Wed, 24 Aug 2016 09:42:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcYRy-000352-Du for qemu-devel@nongnu.org; Wed, 24 Aug 2016 09:42:38 -0400 From: "Dr. David Alan Gilbert (git)" Date: Wed, 24 Aug 2016 14:42:28 +0100 Message-Id: <1472046153-22123-2-git-send-email-dgilbert@redhat.com> In-Reply-To: <1472046153-22123-1-git-send-email-dgilbert@redhat.com> References: <1472046153-22123-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [RFC 1/6] migration: report an error giving the failed field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, mst@redhat.com, amit.shah@redhat.com, quintela@redhat.com Cc: duanj@linux.vnet.ibm.com, cornelia.huck@de.ibm.com From: "Dr. David Alan Gilbert" When a field fails to load (typically due to a limit check, or a call to a get/put) report the device and field to give an indication of the cause. Signed-off-by: Dr. David Alan Gilbert --- migration/vmstate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/vmstate.c b/migration/vmstate.c index fc29acf..1d637b2 100644 --- a/migration/vmstate.c +++ b/migration/vmstate.c @@ -130,6 +130,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd, } if (ret < 0) { qemu_file_set_error(f, ret); + error_report("Failed to load %s:%s", vmsd->name, + field->name); trace_vmstate_load_field_error(field->name, ret); return ret; } -- 2.7.4