mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
util: Add back topic prefix to meta_topic() messages
Was lost when changing to use g_message(); lets add it back. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2125>
This commit is contained in:
parent
fa31c97aec
commit
50ccab567f
@ -175,7 +175,10 @@ const char * meta_topic_to_string (MetaDebugTopic topic);
|
|||||||
{ \
|
{ \
|
||||||
if (meta_is_topic_enabled (debug_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
|
G_STMT_END
|
||||||
|
Loading…
Reference in New Issue
Block a user