From 3d3c88f9602a81d3d4b477b42bbe6823c40b546c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sat, 9 Apr 2022 10:55:01 +0200 Subject: [PATCH] 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: --- 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 677bed107..9d0c685ed 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