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