|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH V2 03/11] libxl_qmp, Better error message after a par
By setting the next string to parse after having printed any error messages.
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
tools/libxl/libxl_qmp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index ef36348..f61a87a 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -403,7 +403,6 @@ static int qmp_next(libxl__gc *gc, libxl__qmp_handler *qmp)
*end = '\0';
o = libxl__json_parse(gc, s);
- s = end + 2;
if (o) {
qmp_handle_response(qmp, o);
@@ -413,6 +412,8 @@ static int qmp_next(libxl__gc *gc, libxl__qmp_handler *qmp)
"Parse error of : %s\n", s);
return -1;
}
+
+ s = end + 2;
} else {
break;
}
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH V2 00/11] libxl: QMP client improvement + pci passthrougth insert through QMP, Anthony PERARD
- [Xen-devel] [PATCH V2 03/11] libxl_qmp, Better error message after a parse error.,
Anthony PERARD <=
- [Xen-devel] [PATCH V2 01/11] libxl_qmp, Fix return check of fcntl, Anthony PERARD
- [Xen-devel] [PATCH V2 04/11] libxl, Introduce dm-version xenstore key., Anthony PERARD
- [Xen-devel] [PATCH V2 06/11] libxl_qmp, Introduce list of arguments to qmp_send, Anthony PERARD
- [Xen-devel] [PATCH V2 07/11] libxl_qmp, Always insert a command id in the callback_list., Anthony PERARD
- [Xen-devel] [PATCH V2 10/11] libxl_qmp, Introduce libxl__qmp_pci_add., Anthony PERARD
- [Xen-devel] [PATCH V2 11/11] libxl, Use QMP to insert a passthrough device when using upstream QEMU, Anthony PERARD
|
|
|
|
|