From 0b143fcb2bdeec9abd1c1d2a9dbe707cb9165b65 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 11 Mar 2013 18:11:27 +0000 Subject: sna: Improve sna_copy_boxes DBG by printing the bo handles The handles of the bo are easier to track through the DBG as they are more often printed than then their addresses. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 662304db..ce633382 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4274,14 +4274,14 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, box->x2 >= dst_pixmap->drawable.width && box->y2 >= dst_pixmap->drawable.height; - DBG(("%s: dst=(priv=%p, gpu_bo=%p, cpu_bo=%p), src=(priv=%p, gpu_bo=%p, cpu_bo=%p), replaces=%d\n", + DBG(("%s: dst=(priv=%p, gpu_bo=%d, cpu_bo=%d), src=(priv=%p, gpu_bo=%d, cpu_bo=%d), replaces=%d\n", __FUNCTION__, dst_priv, - dst_priv ? dst_priv->gpu_bo : NULL, - dst_priv ? dst_priv->cpu_bo : NULL, + dst_priv && dst_priv->gpu_bo ? dst_priv->gpu_bo->handle : 0, + dst_priv && dst_priv->cpu_bo ? dst_priv->cpu_bo->handle : 0, src_priv, - src_priv ? src_priv->gpu_bo : NULL, - src_priv ? src_priv->cpu_bo : NULL, + src_priv && src_priv->gpu_bo ? src_priv->gpu_bo->handle : 0, + src_priv && src_priv->cpu_bo ? src_priv->cpu_bo->handle : 0, replaces)); if (dst_priv == NULL) -- cgit v1.2.3