[mutter] clutter: Don't log filenames in debugging mode
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Don't log filenames in debugging mode
- Date: Wed, 4 May 2022 20:02:46 +0000 (UTC)
commit 3d3c88f9602a81d3d4b477b42bbe6823c40b546c
Author: Jonas Dreßler <verdre v0yd nl>
Date: Sat Apr 9 10:55:01 2022 +0200
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>
clutter/clutter/clutter-debug.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-debug.h b/clutter/clutter/clutter-debug.h
index 677bed1079..9d0c685ed0 100644
--- a/clutter/clutter/clutter-debug.h
+++ b/clutter/clutter/clutter-debug.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]