Mesa (master): mesa: Fix printf format warning.

Vinson Lee vlee at kemper.freedesktop.org
Wed Sep 29 17:47:31 UTC 2010


Module: Mesa
Branch: master
Commit: aa62416ae17b707ce059e92197f719a6896d109c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa62416ae17b707ce059e92197f719a6896d109c

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Sep 29 10:46:46 2010 -0700

mesa: Fix printf format warning.

Fixes this GCC warning.
math/m_debug_xform.c: In function '_math_test_all_transform_functions':
math/m_debug_xform.c:320: warning: format not a string literal and no format arguments

---

 src/mesa/math/m_debug_xform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/math/m_debug_xform.c b/src/mesa/math/m_debug_xform.c
index 46bd454..7d81566 100644
--- a/src/mesa/math/m_debug_xform.c
+++ b/src/mesa/math/m_debug_xform.c
@@ -317,7 +317,7 @@ void _math_test_all_transform_functions( char *description )
 	    char buf[100];
 	    sprintf(buf, "_mesa_transform_tab[0][%d][%s] failed test (%s)",
 		    psize, mstrings[mtype], description );
-	    _mesa_problem( NULL, buf );
+	    _mesa_problem( NULL, "%s", buf );
 	 }
 #ifdef RUN_DEBUG_BENCHMARK
 	 if ( mesa_profile )




More information about the mesa-commit mailing list