]> xenbits.xensource.com Git - xen.git/commitdiff
libxc/restore: Fix error message for unrecognised stream version
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Dec 2019 13:49:56 +0000 (13:49 +0000)
committerWei Liu <wl@xen.org>
Tue, 17 Dec 2019 14:03:14 +0000 (14:03 +0000)
The Expected and Got values are rendered in the wrong order.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxc/xc_sr_restore.c

index ea7b0339ef065c31a72ea1159b3a0c2cd96e3d72..1ac404b97b0184fe348e159e166d2f1b5263cd9c 100644 (file)
@@ -36,7 +36,7 @@ static int read_headers(struct xc_sr_context *ctx)
     else if ( ihdr.version != IHDR_VERSION )
     {
         ERROR("Invalid Version: Expected %d, Got %d",
-              ihdr.version, IHDR_VERSION);
+              IHDR_VERSION, ihdr.version);
         return -1;
     }
     else if ( ihdr.options & IHDR_OPT_BIG_ENDIAN )