summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-28 22:52:44 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-28 22:52:44 +0000
commitf9ee02be269d1658d3a8a5166e9bd2a49ab6dea0 (patch)
treea8cfb9d0c15393fb7067bc6f7ecdb32750f68e7b
parent698bd43e0f7a59bcce6601b0c96df85935e54bb3 (diff)
sna: Fix debug message for read-boxes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index 0386cef1..6cdc3fa5 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -106,9 +106,10 @@ void sna_read_boxes(struct sna *sna,
(box[n].x2 + src_dx) * dst->drawable.bitsPerPixel/8 > src_bo->pitch ||
(box[n].y2 + src_dy) * src_bo->pitch > src_bo->size)
{
- FatalError("source out-of-bounds box[%d]=(%d, %d), (%d, %d) + (%d, %d), pitch=%d, size=%d\n",
+ FatalError("source out-of-bounds box[%d]=(%d, %d), (%d, %d) + (%d, %d), pitch=%d, size=%d\n", n,
box[n].x1, box[n].y1,
box[n].x2, box[n].y2,
+ src_dx, src_dy,
src_bo->pitch, src_bo->size);
}
}