From d504086ebf20ee53c66213c4e06c99cc1a6432b6 Mon Sep 17 00:00:00 2001 From: Uday Kiran Pichika Date: Wed, 21 Oct 2020 11:23:13 +0530 Subject: [PATCH] cogl: correcting the cogl trace log Remove the extra & symbol appearing in cogl debug log https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1517 --- cogl/cogl/cogl-debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl/cogl-debug.h b/cogl/cogl/cogl-debug.h index bcbce9791..82a572b9c 100644 --- a/cogl/cogl/cogl-debug.h +++ b/cogl/cogl/cogl-debug.h @@ -94,14 +94,14 @@ unsigned long _cogl_debug_flags[COGL_DEBUG_N_LONGS]; #ifdef __GNUC__ #define COGL_NOTE(type,x,a...) G_STMT_START { \ if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type))) { \ - _cogl_profile_trace_message ("[" #type "] " G_STRLOC " & " x, ##a); \ + _cogl_profile_trace_message ("[" #type "] " G_STRLOC ": " x, ##a); \ } } G_STMT_END #else #define COGL_NOTE(type,...) G_STMT_START { \ if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type))) { \ char *_fmt = g_strdup_printf (__VA_ARGS__); \ - _cogl_profile_trace_message ("[" #type "] " G_STRLOC " & %s", _fmt);\ + _cogl_profile_trace_message ("[" #type "] " G_STRLOC ": %s", _fmt);\ g_free (_fmt); \ } } G_STMT_END