Message ID | 20191217134956.15137-1-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | libxc/restore: Fix error message for unrecognised stream version | expand |
On Tue, Dec 17, 2019 at 01:49:56PM +0000, Andrew Cooper wrote: > 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>
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 )
The Expected and Got values are rendered in the wrong order. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Ian Jackson <Ian.Jackson@citrix.com> CC: Wei Liu <wl@xen.org> This wants backporting to the stable trees --- tools/libxc/xc_sr_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)