summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:33:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:33:47 +0000
commit637e7c2186ccde65bed74dfd28f53a2a808e4101 (patch)
tree0ca8f78d24d3950f3cf208422bfba8365958fffd /tools
parent92e9bf82b22ca59ac0009a6a4a641a1056c34bf4 (diff)
intel-virtual-output: Print error events for debugging
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 73475e96..050bf1fb 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -205,6 +205,12 @@ static int
_check_error_handler(Display *display,
XErrorEvent *event)
{
+ DBG(("X11 error from display %s, serial=%ld, error=%d, req=%d.%d\n",
+ DisplayString(display),
+ event->serial,
+ event->error_code,
+ event->request_code,
+ event->minor_code));
_x_error_occurred = 1;
return False; /* ignored */
}