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/sna_trapezoids_precise.c | |
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/sna_trapezoids_precise.c')
-rw-r--r-- | src/sna/sna_trapezoids_precise.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sna/sna_trapezoids_precise.c b/src/sna/sna_trapezoids_precise.c index 7e685471..de95dfdc 100644 --- a/src/sna/sna_trapezoids_precise.c +++ b/src/sna/sna_trapezoids_precise.c @@ -43,7 +43,7 @@ #undef FAST_SAMPLES_Y #if 0 -#define __DBG(x) ErrorF x +#define __DBG(x) LogF x #else #define __DBG(x) #endif @@ -92,12 +92,11 @@ static void _assert_pixmap_contains_box(PixmapPtr pixmap, BoxPtr box, const char box->x2 > pixmap->drawable.width || box->y2 > pixmap->drawable.height) { - ErrorF("%s: damage box is beyond the pixmap: box=(%d, %d), (%d, %d), pixmap=(%d, %d)\n", - __FUNCTION__, - box->x1, box->y1, box->x2, box->y2, - pixmap->drawable.width, - pixmap->drawable.height); - assert(0); + FatalError("%s: damage box is beyond the pixmap: box=(%d, %d), (%d, %d), pixmap=(%d, %d)\n", + function, + box->x1, box->y1, box->x2, box->y2, + pixmap->drawable.width, + pixmap->drawable.height); } } #define assert_pixmap_contains_box(p, b) _assert_pixmap_contains_box(p, b, __FUNCTION__) |