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

Vinson Lee vlee at kemper.freedesktop.org
Wed Sep 29 17:45:02 UTC 2010


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

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

mesa: Fix printf format warning.

Fixes this GCC warning.
math/m_debug_norm.c: In function '_math_test_all_normal_transform_functions':
math/m_debug_norm.c:365: warning: format not a string literal and no format arguments

---

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

diff --git a/src/mesa/math/m_debug_norm.c b/src/mesa/math/m_debug_norm.c
index 710bad1..02eb1f9 100644
--- a/src/mesa/math/m_debug_norm.c
+++ b/src/mesa/math/m_debug_norm.c
@@ -362,7 +362,7 @@ void _math_test_all_normal_transform_functions( char *description )
 	 char buf[100];
 	 sprintf( buf, "_mesa_normal_tab[0][%s] failed test (%s)",
 		  norm_strings[mtype], description );
-	 _mesa_problem( NULL, buf );
+	 _mesa_problem( NULL, "%s", buf );
       }
 
 #ifdef RUN_DEBUG_BENCHMARK




More information about the mesa-commit mailing list