summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-09-05 14:48:49 +0100
committerEmil Velikov <[email protected]>2017-09-06 17:48:50 +0100
commitacf7f84564688b43fc4c1c67d864c306fa154940 (patch)
treedea913cfcf3452882fa9985672c2e8331cc0dfd3 /src/mesa/main/errors.c
parentd0a4b26915759cfb8e0b93ef0df5e317cbf66d4a (diff)
mesa: don't use %s for PACKAGE_VERSION macro
The macro itself is a well defined string, which cannot cause issues with printf or other printf-like functions. All other places through Mesa already use it directly, so let's update the final two instances. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 3a40c7457a5..9173788d1de 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -172,8 +172,8 @@ _mesa_problem( const struct gl_context *ctx, const char *fmtString, ... )
va_start( args, fmtString );
_mesa_vsnprintf( str, MAX_DEBUG_MESSAGE_LENGTH, fmtString, args );
va_end( args );
- fprintf(stderr, "Mesa %s implementation error: %s\n",
- PACKAGE_VERSION, str);
+ fprintf(stderr, "Mesa " PACKAGE_VERSION " implementation error: %s\n",
+ str);
fprintf(stderr, "Please report at " PACKAGE_BUGREPORT "\n");
}
}