diff --git a/src/meta/util.h b/src/meta/util.h index 1df30f2e1..c44a63fc8 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -175,7 +175,10 @@ const char * meta_topic_to_string (MetaDebugTopic topic); { \ if (meta_is_topic_enabled (debug_topic)) \ { \ - g_message (__VA_ARGS__); \ + g_autofree char *message = NULL; \ +\ + message = g_strdup_printf (__VA_ARGS__); \ + g_message ("%s: %s", meta_topic_to_string (debug_topic), message); \ } \ } \ G_STMT_END