[mutter] cogl/trace: Fix argument naming



commit dd40e35ab2dd5d79634db1459ee742ec463a9b38
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Feb 2 23:28:01 2021 +0100

    cogl/trace: Fix argument naming
    
    The argument passed to COGL_TRACE() and friends is the "name", not the
    optional "description". Clean this up so we can add description handling
    too.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1700>

 cogl/cogl/cogl-trace.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/cogl/cogl/cogl-trace.h b/cogl/cogl/cogl-trace.h
index 2900da0950..4d1e52aaee 100644
--- a/cogl/cogl/cogl-trace.h
+++ b/cogl/cogl/cogl-trace.h
@@ -83,22 +83,22 @@ cogl_auto_trace_end_helper (CoglTraceHead **head)
     cogl_trace_end (*head);
 }
 
-#define COGL_TRACE_BEGIN(Name, description) \
+#define COGL_TRACE_BEGIN(Name, name) \
   CoglTraceHead CoglTrace##Name = { 0 }; \
   if (g_private_get (&cogl_trace_thread_data)) \
-    cogl_trace_begin (&CoglTrace##Name, description); \
+    cogl_trace_begin (&CoglTrace##Name, name); \
 
 #define COGL_TRACE_END(Name)\
   if (g_private_get (&cogl_trace_thread_data)) \
     cogl_trace_end (&CoglTrace##Name);
 
-#define COGL_TRACE_BEGIN_SCOPED(Name, description) \
+#define COGL_TRACE_BEGIN_SCOPED(Name, name) \
   CoglTraceHead CoglTrace##Name = { 0 }; \
   __attribute__((cleanup (cogl_auto_trace_end_helper))) \
     CoglTraceHead *ScopedCoglTrace##Name = NULL; \
   if (g_private_get (&cogl_trace_thread_data)) \
     { \
-      cogl_trace_begin (&CoglTrace##Name, description); \
+      cogl_trace_begin (&CoglTrace##Name, name); \
       ScopedCoglTrace##Name = &CoglTrace##Name; \
     }
 
@@ -106,9 +106,9 @@ cogl_auto_trace_end_helper (CoglTraceHead **head)
 
 #include <stdio.h>
 
-#define COGL_TRACE_BEGIN(Name, description) (void) 0
+#define COGL_TRACE_BEGIN(Name, name) (void) 0
 #define COGL_TRACE_END(Name) (void) 0
-#define COGL_TRACE_BEGIN_SCOPED(Name, description) (void) 0
+#define COGL_TRACE_BEGIN_SCOPED(Name, name) (void) 0
 
 COGL_EXPORT void
 cogl_set_tracing_enabled_on_thread_with_fd (void       *data,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]