xinerama: change some log messages to errors

This commit is contained in:
Michael Stapelberg 2009-12-21 20:41:02 +01:00
parent 4b3ff1795c
commit 0b5554c762
1 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@ static void query_screens(xcb_connection_t *conn, struct screens_head *screenlis
while ((time(NULL) - before_trying) < 10) { while ((time(NULL) - before_trying) < 10) {
reply = xcb_xinerama_query_screens_reply(conn, xcb_xinerama_query_screens_unchecked(conn), NULL); reply = xcb_xinerama_query_screens_reply(conn, xcb_xinerama_query_screens_unchecked(conn), NULL);
if (!reply) { if (!reply) {
DLOG("Couldn't get Xinerama screens\n"); ELOG("Couldn't get Xinerama screens\n");
return; return;
} }
screen_info = xcb_xinerama_query_screens_screen_info(reply); screen_info = xcb_xinerama_query_screens_screen_info(reply);
@ -228,7 +228,7 @@ static void query_screens(xcb_connection_t *conn, struct screens_head *screenlis
free(reply); free(reply);
if (num_screens == 0) { if (num_screens == 0) {
DLOG("No screens found. This is weird. Trying again...\n"); ELOG("No screens found. This is weird. Trying again...\n");
/* Give the scheduler a chance to do something else /* Give the scheduler a chance to do something else
* and dont hog the CPU */ * and dont hog the CPU */
usleep(250); usleep(250);
@ -239,7 +239,7 @@ static void query_screens(xcb_connection_t *conn, struct screens_head *screenlis
} }
if (num_screens == 0) { if (num_screens == 0) {
DLOG("No screens found for 10 seconds. Please fix your setup. i3 will exit now.\n"); ELOG("No screens found for 10 seconds. Please fix your setup. i3 will exit now.\n");
exit(0); exit(0);
} }
} }