From: Andrew Cooper Date: Tue, 17 Dec 2019 13:49:56 +0000 (+0000) Subject: libxc/restore: Fix error message for unrecognised stream version X-Git-Tag: archive/raspbian/4.11.4+24-gddaaccbbab-1_deb10u1+rpi1^2^2~53^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=47772087eb799c3ffb3544c0030a6815fd15336e;p=xen.git libxc/restore: Fix error message for unrecognised stream version The Expected and Got values are rendered in the wrong order. Signed-off-by: Andrew Cooper Acked-by: Wei Liu (cherry picked from commit f50a4f6e244cfc8e773300c03aaf4db391f3028a) (cherry picked from commit 7b2225078b4b91044c365b2276c8897c46241c79) (cherry picked from commit 66998bdd5220eaef895c66f99a5a74e8dcc187c1) --- diff --git a/tools/libxc/xc_sr_restore.c b/tools/libxc/xc_sr_restore.c index ea7b0339ef..1ac404b97b 100644 --- a/tools/libxc/xc_sr_restore.c +++ b/tools/libxc/xc_sr_restore.c @@ -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 )