xglcomp
changeset 10:be18500d76d1
better error message in xerr_debug
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 03 Feb 2016 03:55:52 +0200 |
parents | 245dd960f0b3 |
children | cb636a23f4f2 |
files | src/xerr.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/src/xerr.cc Tue Feb 02 12:54:02 2016 +0200 1.2 +++ b/src/xerr.cc Wed Feb 03 03:55:52 2016 +0200 1.3 @@ -25,7 +25,10 @@ 1.4 { 1.5 char errstr[512]; 1.6 XGetErrorText(dpy, err->error_code, errstr, sizeof errstr); 1.7 - printf("X error caught:\n%s\n", errstr); 1.8 + printf("X error caught: \n%s (code: %u)\n", errstr, err->error_code); 1.9 + printf(" Failed request number: %lu (%u,%u)\n", err->serial, 1.10 + (unsigned int)err->request_code, (unsigned int)err->minor_code); 1.11 + printf(" Resource: %lx\n", err->resourceid); 1.12 return 0; 1.13 } 1.14