[Spice-commits] src/spice-session.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Feb 16 11:18:55 UTC 2018


 src/spice-session.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 28881717ab96593b19e994b34d0d1ee77ffe429e
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Fri Feb 16 11:13:05 2018 +0100

    session: warn with the original URI
    
    Before:
    (lt-spicy:18372): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in URI 'spice://foo'
    
    After:
    (lt-spicy:18654): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in URI 'spice://foo:23?port=24'
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/src/spice-session.c b/src/spice-session.c
index 2aabf58..e6db424 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -545,7 +545,7 @@ static int spice_parse_uri(SpiceSession *session, const char *original_uri)
         }
         if (target_key) {
             if (*target_key) {
-                g_warning("Double set of '%s' in URI '%s'", key, uri);
+                g_warning("Double set of '%s' in URI '%s'", key, original_uri);
                 goto fail;
             }
             *target_key = g_uri_unescape_string(value, NULL);
@@ -553,7 +553,7 @@ static int spice_parse_uri(SpiceSession *session, const char *original_uri)
     }
 
     if (port == NULL && tls_port == NULL) {
-        g_warning("Missing port or tls-port in spice URI '%s'", uri);
+        g_warning("Missing port or tls-port in spice URI '%s'", original_uri);
         goto fail;
     }
 


More information about the Spice-commits mailing list