[Xen-devel] [PATCH] libxc/restore: Fix error message for unrecognised stream version

Andrew Cooper posted 1 patch 4 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20191217134956.15137-1-andrew.cooper3@citrix.com
tools/libxc/xc_sr_restore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Xen-devel] [PATCH] libxc/restore: Fix error message for unrecognised stream version
Posted by Andrew Cooper 4 years, 4 months ago
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(-)

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 )
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH] libxc/restore: Fix error message for unrecognised stream version
Posted by Wei Liu 4 years, 4 months ago
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>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel