sna/dri2: Slightly improved DBG messages
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jun 2014 19:24:05 +0000 (20:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jun 2014 06:40:48 +0000 (07:40 +0100)
Missing git add from

commit 2e8c09f3fe468abba9c307ba3d7b2d22908e1172
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jun 25 22:19:23 2014 +0100

    sna/dri2: Hook into ClientGone callback to clear dangling references

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_dri2.c

index f24086a..c6327ee 100644 (file)
@@ -1199,8 +1199,8 @@ sna_dri2_remove_event(WindowPtr win, struct sna_dri2_event *info)
        struct sna_dri2_event *chain;
 
        assert(win->drawable.type == DRAWABLE_WINDOW);
-       DBG(("%s: remove[%p] from window %ld)\n",
-            __FUNCTION__, info, (long)win->drawable.id));
+       DBG(("%s: remove[%p] from window %ld, active? %d\n",
+            __FUNCTION__, info, (long)win->drawable.id, info->darw != NULL));
 
        priv = dri2_window(win);
        assert(priv);
@@ -1267,7 +1267,8 @@ sna_dri2_client_gone(CallbackListPtr *list, void *closure, void *data)
        if (client->clientState != ClientStateGone)
                return;
 
-       DBG(("%s()\n", __FUNCTION__));
+       DBG(("%s(active?=%d)\n", __FUNCTION__
+            !list_is_empty(&priv->events)));
 
        while (!list_is_empty(&priv->events)) {
                struct sna_dri2_event *event;