OSDN Git Service

mesa: remove MESA_FUNCTION
authorBrian Paul <brianp@vmware.com>
Thu, 25 Jan 2018 20:44:19 +0000 (13:44 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jan 2018 20:52:48 +0000 (13:52 -0700)
Just use __func__ in the two macros where it was used.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/main/context.h
src/mesa/main/mtypes.h

index 5d9e2ed..86be66f 100644 (file)
@@ -206,7 +206,7 @@ _mesa_inside_dlist_begin_end(const struct gl_context *ctx)
 #define FLUSH_VERTICES(ctx, newstate)                          \
 do {                                                           \
    if (MESA_VERBOSE & VERBOSE_STATE)                           \
-      _mesa_debug(ctx, "FLUSH_VERTICES in %s\n", MESA_FUNCTION);\
+      _mesa_debug(ctx, "FLUSH_VERTICES in %s\n", __func__);    \
    if (ctx->Driver.NeedFlush & FLUSH_STORED_VERTICES)          \
       vbo_exec_FlushVertices(ctx, FLUSH_STORED_VERTICES);      \
    ctx->NewState |= newstate;                                  \
@@ -225,7 +225,7 @@ do {                                                                \
 #define FLUSH_CURRENT(ctx, newstate)                           \
 do {                                                           \
    if (MESA_VERBOSE & VERBOSE_STATE)                           \
-      _mesa_debug(ctx, "FLUSH_CURRENT in %s\n", MESA_FUNCTION);        \
+      _mesa_debug(ctx, "FLUSH_CURRENT in %s\n", __func__);     \
    if (ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT)           \
       vbo_exec_FlushVertices(ctx, FLUSH_UPDATE_CURRENT);       \
    ctx->NewState |= newstate;                                  \
index 20aa80a..361b63c 100644 (file)
@@ -5121,11 +5121,9 @@ struct gl_memory_info
 #ifdef DEBUG
 extern int MESA_VERBOSE;
 extern int MESA_DEBUG_FLAGS;
-# define MESA_FUNCTION __func__
 #else
 # define MESA_VERBOSE 0
 # define MESA_DEBUG_FLAGS 0
-# define MESA_FUNCTION "a function"
 #endif