intel-virtual-output: Print error events for debugging
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Jan 2014 12:33:19 +0000 (12:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Jan 2014 12:33:47 +0000 (12:33 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/virtual.c

index 73475e9..050bf1f 100644 (file)
@@ -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 */
 }