summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-16 22:37:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-17 09:15:37 +0000
commitcea442c0d0d7f1ef95d9d8048668eecbdcbc9a4e (patch)
treea6377b2d5d526871560f96f2ae80a5fc489a69de /src/sna/sna.h
parent6db99169a99393a8a669f89682bb8df13a7c5677 (diff)
sna: Cull the DBG spew to stderr
Reduce the logging verbosity of DBG so that it only appears in the logfile by default - makes debugging much more pleasant. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 3ac0fad5..27f5708c 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -75,9 +75,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "compiler.h"
#if HAS_DEBUG_FULL
-#define DBG(x) ErrorF x
+void LogF(const char *f, ...);
+#define DBG(x) LogF x
+#define ERR(x) ErrorF x
#else
#define DBG(x)
+#define ERR(x)
#endif
#define DEBUG_NO_BLT 0