Skip to contentSkip to conversation

libxc/restore: Fix error message for unrecognised stream version

PATCH In review Andrew Cooper 2 participants 2 messages Dec 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc/restore: Fix error message for unrecognised stream version

The Expected and Got values are rendered in the wrong order.

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>

This wants backporting to the stable trees

---
 tools/libxc/xc_sr_restore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_sr_restore.c +1 -1
index ea7b0339ef..1ac404b97b 100644
@@ -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 )
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel