|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] libxl: libxl_qmp: Better error message af
# HG changeset patch
# User Anthony PERARD <anthony.perard@xxxxxxxxxx>
# Date 1320410302 0
# Node ID cf8924724b61cc3a22f19e338926795121438349
# Parent bdbd100b28ae011fd9db40ac6fae7fc8fe2dc345
libxl: libxl_qmp: Better error message after a parse error.
By setting the next string to parse after having printed any error messages.
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---
diff -r bdbd100b28ae -r cf8924724b61 tools/libxl/libxl_qmp.c
--- a/tools/libxl/libxl_qmp.c Fri Nov 04 12:38:22 2011 +0000
+++ b/tools/libxl/libxl_qmp.c Fri Nov 04 12:38:22 2011 +0000
@@ -403,7 +403,6 @@
*end = '\0';
o = libxl__json_parse(gc, s);
- s = end + 2;
if (o) {
qmp_handle_response(qmp, o);
@@ -413,6 +412,8 @@
"Parse error of : %s\n", s);
return -1;
}
+
+ s = end + 2;
} else {
break;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] libxl: libxl_qmp: Better error message after a parse error.,
Xen patchbot-unstable <=
|
|
|
|
|