Re: [PATCH 3/3] Convert QEMU driver to use virLogProbablyLogMessage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/06/13 17:16, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

The current QEMU code for skipping log messages only skips over
'debug' message, switch to virLogProbablyLogMessage to make sure
it skips over all of them
---
  src/qemu/qemu_process.c | 12 ++----------
  1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 9f1507a..3196dbc 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c

...


@@ -3764,6 +3755,7 @@ int qemuProcessStart(virConnectPtr conn,

      if (unlink(priv->pidfile) < 0 &&
          errno != ENOENT) {
+        VIR_FREE(priv->pidfile);
          virReportSystemError(errno,
                               _("Cannot remove stale PID file %s"),
                               priv->pidfile);

This hunk doesn't seem to be related to this patch. Also it would free the priv->pidfile argument right before reporting the error.



ACK with the last hunk removed.

Peter

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]