gallium/util: update comments and URL in u_debug_refcnt.c
authorBrian Paul <brianp@vmware.com>
Fri, 4 Mar 2016 20:05:33 +0000 (13:05 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 5 Mar 2016 16:20:28 +0000 (09:20 -0700)
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/gallium/auxiliary/util/u_debug_refcnt.c

index f486492b3cd90a4720fdedb9958abed6201a617d..97a4786b86f4bd299a462ad4b3e2ead0a4609b43 100644 (file)
 
 #if defined(DEBUG)
 
-/* see http://www.mozilla.org/performance/refcnt-balancer.html for what do with the output
- * on Linux, use tools/addr2line.sh to postprocess it before anything else
- **/
+/**
+ * If the GALLIUM_REFCNT_LOG env var is defined as a filename, gallium
+ * reference counting will be logged to the file.
+ *
+ * See http://www-archive.mozilla.org/performance/refcnt-balancer.html
+ * for what to do with the output on Linux, use tools/addr2line.sh to
+ * postprocess it before anything else.
+ */
 
 #include <stdio.h>
 
@@ -201,4 +206,5 @@ debug_reference_slowpath(const struct pipe_reference *p,
       fflush(stream);
    }
 }
-#endif
+
+#endif /* DEBUG */