From d54d3840da41ad3ef4def979f7e9d3eda0a629de Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 15 Jun 2012 10:02:25 +0200 Subject: [PATCH] xerror: Print numeric infos about the error xcb_event_get_{request,error}_label() return NULL for non-core requests and error codes. Obviously, that's not really helpful at all, so also print the numeric information about what failed. Signed-off-by: Uli Schlachter --- event.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/event.c b/event.c index 2db7f751e..7e7406e17 100644 --- a/event.c +++ b/event.c @@ -733,9 +733,11 @@ xerror(xcb_generic_error_t *e) && e->major_code == XCB_CONFIGURE_WINDOW)) return; - warn("X error: request=%s, error=%s", + warn("X error: request=%s (major %d, minor %d), error=%s (%d)", xcb_event_get_request_label(e->major_code), - xcb_event_get_error_label(e->error_code)); + e->major_code, e->minor_code, + xcb_event_get_error_label(e->error_code), + e->error_code); return; }