mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
GDBus: Hold lock when printing debug messages
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
c29ad23928
commit
1ca6a4687a
@ -58,6 +58,8 @@ debug_print (const gchar *message, ...)
|
||||
va_list var_args;
|
||||
guint n;
|
||||
|
||||
_g_dbus_debug_print_lock ();
|
||||
|
||||
va_start (var_args, message);
|
||||
s = g_strdup_vprintf (message, var_args);
|
||||
va_end (var_args);
|
||||
@ -75,6 +77,8 @@ debug_print (const gchar *message, ...)
|
||||
g_print ("GDBus-debug:Auth: %s\n", str->str);
|
||||
g_string_free (str, TRUE);
|
||||
g_free (s);
|
||||
|
||||
_g_dbus_debug_print_unlock ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user