d62a09
From 16be69ef1e2ea9f19cd596b99b5ede7567d374b8 Mon Sep 17 00:00:00 2001
f2af5d
From: Adam Jackson <ajax@redhat.com>
f2af5d
Date: Mon, 27 Jul 2009 16:52:42 -0400
d62a09
Subject: [PATCH 11/16] additional randr debugging
f2af5d
f2af5d
---
d62a09
 randr/randr.c |   16 +++++++++++++++-
d62a09
 1 files changed, 15 insertions(+), 1 deletions(-)
f2af5d
f2af5d
diff --git a/randr/randr.c b/randr/randr.c
d62a09
index 1c1d0c4..accf614 100644
f2af5d
--- a/randr/randr.c
f2af5d
+++ b/randr/randr.c
f2af5d
@@ -477,10 +477,24 @@ RRVerticalRefresh (xRRModeInfo *mode)
f2af5d
 static int
f2af5d
 ProcRRDispatch (ClientPtr client)
f2af5d
 {
f2af5d
+    int ret;
f2af5d
     REQUEST(xReq);
f2af5d
     if (stuff->data >= RRNumberRequests || !ProcRandrVector[stuff->data])
f2af5d
 	return BadRequest;
f2af5d
-    return (*ProcRandrVector[stuff->data]) (client);
f2af5d
+    ret = ProcRandrVector[stuff->data](client);
d62a09
+
f2af5d
+    if (ret) {
f2af5d
+        int i;
f2af5d
+        ErrorF("RANDR failure: %d (extension base %d)\n", ret, RRErrorBase);
f2af5d
+        for (i = 0; i < stuff->length; i++) {
f2af5d
+            ErrorF("%08x ", ((unsigned int *)stuff) + i);
f2af5d
+            if ((i+1) % 4 == 0)
f2af5d
+               ErrorF("\n");
f2af5d
+        }
d62a09
+        ErrorF("\n");
f2af5d
+    }
f2af5d
+
f2af5d
+    return ret;
f2af5d
 }
f2af5d
 
f2af5d
 static int
f2af5d
-- 
d62a09
1.6.4.2
f2af5d