Mesa (master): st/mesa: protect debug printf() with a conditional instead of comment

Brian Paul brianp at kemper.freedesktop.org
Wed Jan 6 22:54:10 UTC 2016


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan  5 17:26:29 2016 -0700

st/mesa: protect debug printf() with a conditional instead of comment

---

 src/mesa/state_tracker/st_cb_bitmap.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c
index 4d6b8d6..c2cbcbd 100644
--- a/src/mesa/state_tracker/st_cb_bitmap.c
+++ b/src/mesa/state_tracker/st_cb_bitmap.c
@@ -494,11 +494,11 @@ st_flush_bitmap_cache(struct st_context *st)
 
       assert(cache->xmin <= cache->xmax);
 
-/*    printf("flush size %d x %d  at %d, %d\n",
-             cache->xmax - cache->xmin,
-             cache->ymax - cache->ymin,
-             cache->xpos, cache->ypos);
-*/
+      if (0)
+         printf("flush bitmap, size %d x %d  at %d, %d\n",
+                cache->xmax - cache->xmin,
+                cache->ymax - cache->ymin,
+                cache->xpos, cache->ypos);
 
       /* The texture transfer has been mapped until now.
        * So unmap and release the texture transfer before drawing.




More information about the mesa-commit mailing list