Blame SOURCES/0004-Not-having-the-virtio-channel-is-not-an-error-instea.patch

4e1899
From 528a816d2be5fccb531e7711a4c2efea7dbd0348 Mon Sep 17 00:00:00 2001
7ce03f
From: Colin Walters <walters@verbum.org>
7ce03f
Date: Tue, 11 Jun 2013 15:21:13 -0400
4e1899
Subject: [PATCH] Not having the virtio channel is not an error; instead
4e1899
 silently do nothing
7ce03f
7ce03f
Fedora for example bundles the SPICE agent by default; however, we
7ce03f
don't want to spew an error when running non-virtualized, or with
7ce03f
plain VNC.
7ce03f
7ce03f
Let's just silently exit; while we could change LOG_ERR -> LOG_INFO
7ce03f
or something, that's still pointless noise in most people's syslog.
7ce03f
7ce03f
Someone who was debugging a misconfigured SPICE setup would pretty
7ce03f
quickly notice that they were missing the virtio port.
7ce03f
7ce03f
(This patch is part of a larger initiative to reduce error
7ce03f
 spew on default startup in common deployment scenarios such as
7ce03f
 KVM+VNC.)
7ce03f
7ce03f
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7ce03f
---
7ce03f
 src/vdagent.c | 4 +---
7ce03f
 1 file changed, 1 insertion(+), 3 deletions(-)
7ce03f
7ce03f
diff --git a/src/vdagent.c b/src/vdagent.c
7ce03f
index 9e238d3..10ebf6e 100644
7ce03f
--- a/src/vdagent.c
7ce03f
+++ b/src/vdagent.c
7ce03f
@@ -226,9 +226,7 @@ int main(int argc, char *argv[])
7ce03f
             LOG_USER);
7ce03f
 
7ce03f
     if (file_test(portdev) != 0) {
7ce03f
-        syslog(LOG_ERR, "Missing virtio device '%s': %s",
7ce03f
-                portdev, strerror(errno));
7ce03f
-        return 1;
7ce03f
+        return 0;
7ce03f
     }
7ce03f
 
7ce03f
     if (do_daemonize)