[Spice-commits] common/log.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Jun 9 08:57:07 UTC 2017


 common/log.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 30a33922d89a1101a81404db16e51995e09b3f78
Author: Christophe de Dinechin <dinechin at redhat.com>
Date:   Thu Jun 8 18:22:26 2017 +0200

    Use space and not colon to separate log domains
    
    According to https://developer.gnome.org/glib/stable/glib-running.html,
    G_MESSAGES_DEBUG is a space-separated list of log domains for which
    informational and debug messages should be printed
    
    Note that the equivalent code in spice-util.c gets it right.
    
    Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
    Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

diff --git a/common/log.c b/common/log.c
index 61a27ac..92f5bc0 100644
--- a/common/log.c
+++ b/common/log.c
@@ -93,7 +93,7 @@ static void spice_log_set_debug_level(void)
             if (debug_env == NULL) {
                 g_setenv("G_MESSAGES_DEBUG", SPICE_LOG_DOMAIN, FALSE);
             } else {
-                debug_env = g_strconcat(debug_env, ":", SPICE_LOG_DOMAIN, NULL);
+                debug_env = g_strconcat(debug_env, " ", SPICE_LOG_DOMAIN, NULL);
                 g_setenv("G_MESSAGES_DEBUG", SPICE_LOG_DOMAIN, FALSE);
                 g_free(debug_env);
             }


More information about the Spice-commits mailing list