From patchwork Sun Feb 10 22:12:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [for-1.4, stable, v2, 1/3] block-migration: improve "Unknown flags" error message Date: Sun, 10 Feb 2013 12:12:44 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 219526 Message-Id: <1360534366-26723-2-git-send-email-stefanha@redhat.com> To: Cc: Anthony Liguori , david.pravec@nethost.cz, Juan Quintela , Michael Roth , Stefan Hajnoczi , Paolo Bonzini Show the actual flags value and include "block migration" in the error message so it's clear where the error is coming from. Signed-off-by: Stefan Hajnoczi --- block-migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block-migration.c b/block-migration.c index 9ac7de6..573319a 100644 --- a/block-migration.c +++ b/block-migration.c @@ -695,7 +695,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id) (addr == 100) ? '\n' : '\r'); fflush(stdout); } else if (!(flags & BLK_MIG_FLAG_EOS)) { - fprintf(stderr, "Unknown flags\n"); + fprintf(stderr, "Unknown block migration flags: %#x\n", flags); return -EINVAL; } ret = qemu_file_get_error(f);