aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_qmp.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-13 10:44:27 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-10-13 10:44:27 +0100
commitde4aa5b6b1e5430ba7460087b2c7e7359cd21a69 (patch)
treeb1f289644f0e0134ffcaa118118c3117a62d6374 /tools/libxl/libxl_qmp.c
parentd5a95e2863a7025ff5d416146705b82a57fffa73 (diff)
downloadxen-de4aa5b6b1e5430ba7460087b2c7e7359cd21a69.tar.gz
xen-de4aa5b6b1e5430ba7460087b2c7e7359cd21a69.tar.bz2
xen-de4aa5b6b1e5430ba7460087b2c7e7359cd21a69.zip
libxl: remove QMP warning when no pty style serial device is configured
If the serial device is not "pty" then there is nothing to do but this is not an error. Removes a spurious warning if e.g. serial="file:/tmp/serial.log" is used: libxl: error: libxl_qmp.c:137:register_serials_chardev_callback: Failed to store serial port information in xenstore: No such file or directory Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_qmp.c')
-rw-r--r--tools/libxl/libxl_qmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index b6f3005118..618f20fd86 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -87,7 +87,7 @@ static int store_serial_port_info(libxl__qmp_handler *qmp,
int ret = 0;
if (!(chardev && strncmp("pty:", chardev, 4) == 0)) {
- return -1;
+ return 0;
}
path = libxl__xs_get_dompath(&gc, qmp->domid);