diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-16 22:37:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-17 09:15:37 +0000 |
commit | cea442c0d0d7f1ef95d9d8048668eecbdcbc9a4e (patch) | |
tree | a6377b2d5d526871560f96f2ae80a5fc489a69de /src/sna/kgem.h | |
parent | 6db99169a99393a8a669f89682bb8df13a7c5677 (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/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index d67f73f8..f670b604 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -37,9 +37,12 @@ #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 struct kgem_bo { |