better debug output
authorBrian <brian.paul@tungstengraphics.com>
Tue, 25 Sep 2007 21:20:58 +0000 (15:20 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 25 Sep 2007 21:20:58 +0000 (15:20 -0600)
src/mesa/state_tracker/st_atom_constbuf.c

index c2310f9d3f3841e2cef75a0f385e6686a0a5eede..cf52a923d37dfd3be43b326b13b9d34f7c4bc114 100644 (file)
@@ -66,15 +66,15 @@ static void upload_constants( struct st_context *st,
       {
         int i;
 
-        _mesa_printf("%s(%d): %d / %x\n", 
-                     __FUNCTION__, id, params->NumParameters, params->StateFlags);
+        printf("%s(shader=%d, numParams=%d, stateFlags=0x%x)\n", 
+                __FUNCTION__, id, params->NumParameters, params->StateFlags);
 
         for (i = 0; i < params->NumParameters; i++)
-           fprintf(stderr, "%d: %f %f %f %f\n", i,
-                   params->ParameterValues[i][0],
-                   params->ParameterValues[i][1],
-                   params->ParameterValues[i][2],
-                   params->ParameterValues[i][3]);
+            printf("%d: %f %f %f %f\n", i,
+                   params->ParameterValues[i][0],
+                   params->ParameterValues[i][1],
+                   params->ParameterValues[i][2],
+                   params->ParameterValues[i][3]);
       }
 
       /* load Mesa constants into the constant buffer */