qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] arch_init/ram_load: add error message for block length mismatch
@ 2012-12-06 12:02 Alon Levy
  2012-12-06 12:08 ` [Qemu-devel] [PATCH v2] " Alon Levy
  2012-12-06 12:11 ` [Qemu-devel] [PATCH] " Orit Wasserman
  0 siblings, 2 replies; 6+ messages in thread
From: Alon Levy @ 2012-12-06 12:02 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial

Signed-off-by: Alon Levy <alevy@redhat.com>
---
 arch_init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch_init.c b/arch_init.c
index e6effe8..84bca99 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -808,8 +808,10 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
                     QLIST_FOREACH(block, &ram_list.blocks, next) {
                         if (!strncmp(id, block->idstr, sizeof(id))) {
                             if (block->length != length) {
+                                fprintf(stderr, "Length mismatch: %s: %d "
+                                        "in != %d\n", id, length,
+                                        block->length);
                                 ret =  -EINVAL;
-                                goto done;
                             }
                             break;
                         }
-- 
1.8.0.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-18 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 12:02 [Qemu-devel] [PATCH] arch_init/ram_load: add error message for block length mismatch Alon Levy
2012-12-06 12:08 ` [Qemu-devel] [PATCH v2] " Alon Levy
2012-12-06 12:18   ` Orit Wasserman
2012-12-18 16:00   ` Stefan Hajnoczi
2012-12-06 12:11 ` [Qemu-devel] [PATCH] " Orit Wasserman
2012-12-06 12:17   ` Alon Levy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).