clutter: Don't log filenames in debugging mode
A slightly annoying "feature" of Clutters debug messages is that it also logs the filename and line of the current debug message. If you don't have an ultrawide monitor, this can be very annoying and cause lots of linebreaks in the debug logs. So remove that debugging feature and no longer log the filename and line number with debugging messages. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2378>
This commit is contained in:
parent
5404eb34f8
commit
3d3c88f960
@ -15,7 +15,7 @@ G_BEGIN_DECLS
|
||||
/* Try the GCC extension for valists in macros */
|
||||
#define CLUTTER_NOTE(type,x,a...) G_STMT_START { \
|
||||
if (G_UNLIKELY (CLUTTER_HAS_DEBUG (type))) { \
|
||||
_clutter_debug_message ("[" #type "]:" G_STRLOC ": " x, ##a); \
|
||||
_clutter_debug_message ("[" #type "]: " x, ##a); \
|
||||
} } G_STMT_END
|
||||
|
||||
#else /* !__GNUC__ */
|
||||
@ -26,7 +26,7 @@ G_BEGIN_DECLS
|
||||
#define CLUTTER_NOTE(type,...) G_STMT_START { \
|
||||
if (G_UNLIKELY (CLUTTER_HAS_DEBUG (type))) { \
|
||||
gchar *_fmt = g_strdup_printf (__VA_ARGS__); \
|
||||
_clutter_debug_message ("[" #type "]:" G_STRLOC ": %s", _fmt); \
|
||||
_clutter_debug_message ("[" #type "]: %s", _fmt); \
|
||||
g_free (_fmt); \
|
||||
} } G_STMT_END
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user