xorg fix error reporting.
This commit is contained in:
parent
b13b1907f4
commit
4320a2b299
@ -39,8 +39,8 @@ KeyCode XKeysPop(KeySym keysym) {
|
|||||||
previous = node;
|
previous = node;
|
||||||
node = node->next;
|
node = node->next;
|
||||||
if (i++ > 120) {
|
if (i++ > 120) {
|
||||||
// this should lead to a panic
|
// this should NEVER HAPPEN
|
||||||
printf("loop over limit");
|
fprintf(stderr, "[FATAL-ERROR] XKeysPop() in xorg.c: reached maximum loop limit! Something is wrong\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ Display *getXDisplay(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (DISPLAY == NULL) {
|
if (DISPLAY == NULL) {
|
||||||
fputs("Could not open main display\n", stderr);
|
fprintf(stderr, "[FATAL-ERROR] XKeysPop() in xorg.c: Could not open main display!");
|
||||||
} else if (!REGISTERED) {
|
} else if (!REGISTERED) {
|
||||||
atexit(&XDisplayClose);
|
atexit(&XDisplayClose);
|
||||||
REGISTERED = 1;
|
REGISTERED = 1;
|
||||||
|
Reference in New Issue
Block a user