diff options
author | Mark Janes <[email protected]> | 2018-12-06 16:35:43 -0800 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-03-14 12:56:45 -0700 |
commit | b8a1a3214afa3ac8f3b46ecce59bdd75a612c7e9 (patch) | |
tree | c50fe16699f38e0505420b032b337e9318082035 /src/mesa/main | |
parent | eb1a869a5d19bfd8a0d4099afd58f180997e4663 (diff) |
mesa: rename logging functions to reflect that they format strings
In preparation for the definition of a function to log a formatted
string.
Reviewed-by: Erik Faye-Lund <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/bufferobj.c | 10 | ||||
-rw-r--r-- | src/mesa/main/errors.c | 28 | ||||
-rw-r--r-- | src/mesa/main/errors.h | 32 | ||||
-rw-r--r-- | src/mesa/main/fbobject.c | 10 | ||||
-rw-r--r-- | src/mesa/main/pipelineobj.c | 16 |
5 files changed, 48 insertions, 48 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 3caf363b37f..e65c577e427 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -73,11 +73,11 @@ buffer_usage_warning(struct gl_context *ctx, GLuint *id, const char *fmt, ...) va_list args; va_start(args, fmt); - _mesa_gl_vdebug(ctx, id, - MESA_DEBUG_SOURCE_API, - MESA_DEBUG_TYPE_PERFORMANCE, - MESA_DEBUG_SEVERITY_MEDIUM, - fmt, args); + _mesa_gl_vdebugf(ctx, id, + MESA_DEBUG_SOURCE_API, + MESA_DEBUG_TYPE_PERFORMANCE, + MESA_DEBUG_SEVERITY_MEDIUM, + fmt, args); va_end(args); } diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 30560ba047e..fad8cb59cae 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -217,13 +217,13 @@ should_output(struct gl_context *ctx, GLenum error, const char *fmtString) void -_mesa_gl_vdebug(struct gl_context *ctx, - GLuint *id, - enum mesa_debug_source source, - enum mesa_debug_type type, - enum mesa_debug_severity severity, - const char *fmtString, - va_list args) +_mesa_gl_vdebugf(struct gl_context *ctx, + GLuint *id, + enum mesa_debug_source source, + enum mesa_debug_type type, + enum mesa_debug_severity severity, + const char *fmtString, + va_list args) { char s[MAX_DEBUG_MESSAGE_LENGTH]; int len; @@ -240,16 +240,16 @@ _mesa_gl_vdebug(struct gl_context *ctx, void -_mesa_gl_debug(struct gl_context *ctx, - GLuint *id, - enum mesa_debug_source source, - enum mesa_debug_type type, - enum mesa_debug_severity severity, - const char *fmtString, ...) +_mesa_gl_debugf(struct gl_context *ctx, + GLuint *id, + enum mesa_debug_source source, + enum mesa_debug_type type, + enum mesa_debug_severity severity, + const char *fmtString, ...) { va_list args; va_start(args, fmtString); - _mesa_gl_vdebug(ctx, id, source, type, severity, fmtString, args); + _mesa_gl_vdebugf(ctx, id, source, type, severity, fmtString, args); va_end(args); } diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h index 5911da2956f..3e2d56e7741 100644 --- a/src/mesa/main/errors.h +++ b/src/mesa/main/errors.h @@ -74,30 +74,30 @@ _mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id, const char *msg); extern void -_mesa_gl_vdebug(struct gl_context *ctx, +_mesa_gl_vdebugf(struct gl_context *ctx, + GLuint *id, + enum mesa_debug_source source, + enum mesa_debug_type type, + enum mesa_debug_severity severity, + const char *fmtString, + va_list args); + +extern void +_mesa_gl_debugf(struct gl_context *ctx, GLuint *id, enum mesa_debug_source source, enum mesa_debug_type type, enum mesa_debug_severity severity, - const char *fmtString, - va_list args); - -extern void -_mesa_gl_debug(struct gl_context *ctx, - GLuint *id, - enum mesa_debug_source source, - enum mesa_debug_type type, - enum mesa_debug_severity severity, - const char *fmtString, ...) PRINTFLIKE(6, 7); + const char *fmtString, ...) PRINTFLIKE(6, 7); #define _mesa_perf_debug(ctx, sev, ...) do { \ static GLuint msg_id = 0; \ if (unlikely(ctx->Const.ContextFlags & GL_CONTEXT_FLAG_DEBUG_BIT)) { \ - _mesa_gl_debug(ctx, &msg_id, \ - MESA_DEBUG_SOURCE_API, \ - MESA_DEBUG_TYPE_PERFORMANCE, \ - sev, \ - __VA_ARGS__); \ + _mesa_gl_debugf(ctx, &msg_id, \ + MESA_DEBUG_SOURCE_API, \ + MESA_DEBUG_TYPE_PERFORMANCE, \ + sev, \ + __VA_ARGS__); \ } \ } while (0) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 047ef4ee395..09143d30af5 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -675,11 +675,11 @@ fbo_incomplete(struct gl_context *ctx, const char *msg, int index) { static GLuint msg_id; - _mesa_gl_debug(ctx, &msg_id, - MESA_DEBUG_SOURCE_API, - MESA_DEBUG_TYPE_OTHER, - MESA_DEBUG_SEVERITY_MEDIUM, - "FBO incomplete: %s [%d]\n", msg, index); + _mesa_gl_debugf(ctx, &msg_id, + MESA_DEBUG_SOURCE_API, + MESA_DEBUG_TYPE_OTHER, + MESA_DEBUG_SEVERITY_MEDIUM, + "FBO incomplete: %s [%d]\n", msg, index); if (MESA_DEBUG_FLAGS & DEBUG_INCOMPLETE_FBO) { _mesa_debug(NULL, "FBO Incomplete: %s [%d]\n", msg, index); diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index b4ca14d7257..1fe1205fb52 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -1019,14 +1019,14 @@ _mesa_validate_program_pipeline(struct gl_context* ctx, static GLuint msg_id = 0; - _mesa_gl_debug(ctx, &msg_id, - MESA_DEBUG_SOURCE_API, - MESA_DEBUG_TYPE_PORTABILITY, - MESA_DEBUG_SEVERITY_MEDIUM, - "glValidateProgramPipeline: pipeline %u does not meet " - "strict OpenGL ES 3.1 requirements and may not be " - "portable across desktop hardware\n", - pipe->Name); + _mesa_gl_debugf(ctx, &msg_id, + MESA_DEBUG_SOURCE_API, + MESA_DEBUG_TYPE_PORTABILITY, + MESA_DEBUG_SEVERITY_MEDIUM, + "glValidateProgramPipeline: pipeline %u does not meet " + "strict OpenGL ES 3.1 requirements and may not be " + "portable across desktop hardware\n", + pipe->Name); } pipe->Validated = GL_TRUE; |