[Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

Frediano Ziglio fziglio at redhat.com
Wed Nov 8 08:20:12 UTC 2017


Missing some names cause some debugging messages to be
generated and some of our tests to fail.

This patch was written by Christophe Fergeau.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/utils.c | 2 ++
 1 file changed, 2 insertions(+)

Tested with Gitlab, see https://gitlab.com/freddy77/spice/-/jobs/39471945

diff --git a/server/utils.c b/server/utils.c
index e25b7891..ff1fc2d1 100644
--- a/server/utils.c
+++ b/server/utils.c
@@ -58,8 +58,10 @@ static const char *const channel_names[] = {
     [ SPICE_CHANNEL_CURSOR   ] = "cursor",
     [ SPICE_CHANNEL_PLAYBACK ] = "playback",
     [ SPICE_CHANNEL_RECORD   ] = "record",
+    [ SPICE_CHANNEL_TUNNEL   ] = "tunnel",
     [ SPICE_CHANNEL_SMARTCARD] = "smartcard",
     [ SPICE_CHANNEL_USBREDIR ] = "usbredir",
+    [ SPICE_CHANNEL_PORT     ] = "port",
     [ SPICE_CHANNEL_WEBDAV   ] = "webdav",
 };
 
-- 
2.13.6



More information about the Spice-devel mailing list