[Spice-devel] [PATCH spice-server] dcc: Add debug log when setting compression

Frediano Ziglio fziglio at redhat.com
Mon Nov 26 13:01:07 UTC 2018


From: Christophe Fergeau <cfergeau at redhat.com>

Without this it's not obvious that a compression setting took effect.
---
 server/dcc.c             | 4 ++++
 subprojects/spice-common | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/server/dcc.c b/server/dcc.c
index 826dd28f..ae7b4380 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -19,6 +19,7 @@
 #include <config.h>
 #endif
 
+#include <common/utils.h>
 #include "dcc-private.h"
 #include "display-channel.h"
 #include "display-channel-private.h"
@@ -1093,6 +1094,9 @@ static bool dcc_handle_preferred_compression(DisplayChannelClient *dcc,
     default:
         spice_warning("preferred-compression: unsupported image compression setting");
     }
+    g_debug("Setting preferred compression to %s",
+            spice_genum_get_nick(SPICE_TYPE_SPICE_IMAGE_COMPRESSION_T,
+                                 dcc->priv->image_compression));
     return TRUE;
 }
 
diff --git a/subprojects/spice-common b/subprojects/spice-common
index 2060672e..125cfa7f 160000
--- a/subprojects/spice-common
+++ b/subprojects/spice-common
@@ -1 +1 @@
-Subproject commit 2060672e8126ed9086dac6b70a4b138c106084a8
+Subproject commit 125cfa7fb2493060419c79eae3b40dbc499bd3db
-- 
2.17.2



More information about the Spice-devel mailing list