]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_agent|monitor: use different log on hangup event
authorChen Hanxiao <chenhanxiao@gmail.com>
Mon, 19 Sep 2016 06:24:50 +0000 (14:24 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Sep 2016 11:06:03 +0000 (13:06 +0200)
Both qemu monitor and agent print the same
log on HUANGUP event, which would be confusing
when reading libvirtd log.

This patch will give a different log message to them.

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c
src/qemu/qemu_monitor.c

index fdc4fed277e4255c4960b886c10f836abecc58e1..e8b7186b1c86487560ae4d069dfeecc7d6789ec5 100644 (file)
@@ -633,7 +633,7 @@ qemuAgentIO(int watch, int fd, int events, void *opaque)
         if (!error &&
             events & VIR_EVENT_HANDLE_HANGUP) {
             virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                           _("End of file from monitor"));
+                           _("End of file from agent monitor"));
             eof = true;
             events &= ~VIR_EVENT_HANDLE_HANGUP;
         }
index 6071c803df473336f45b53bb77bf87a67f4b72d1..b9e29104930419a49242c0691b99471ea9090b2a 100644 (file)
@@ -692,7 +692,7 @@ qemuMonitorIO(int watch, int fd, int events, void *opaque)
             hangup = true;
             if (!error) {
                 virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                               _("End of file from monitor"));
+                               _("End of file from qemu monitor"));
                 eof = true;
                 events &= ~VIR_EVENT_HANDLE_HANGUP;
             }