xcb_dri2_query_version_reply (c->conn,
dri2_query_cookie, &error);
if (dri2_query == NULL || error != NULL) {
- fprintf(stderr, "DRI2: failed to query version");
+ fprintf(stderr, "DRI2: failed to query version\n");
free(error);
return EGL_FALSE;
}
connect_cookie, NULL);
if (connect == NULL ||
connect->driver_name_length + connect->device_name_length == 0) {
- fprintf(stderr, "DRI2: failed to authenticate");
+ fprintf(stderr, "DRI2: failed to connect, DRI2 version: %u.%u\n",
+ c->dri2_major, c->dri2_minor);
return -1;
}
fd = open(path, O_RDWR);
if (fd < 0) {
fprintf(stderr,
- "DRI2: could not open %s (%s)", path, strerror(errno));
+ "DRI2: could not open %s (%s)\n", path, strerror(errno));
return -1;
}
xcb_dri2_authenticate_reply(c->conn,
authenticate_cookie, NULL);
if (authenticate == NULL || !authenticate->authenticated) {
- fprintf(stderr, "DRI2: failed to authenticate");
+ fprintf(stderr, "DRI2: failed to authenticate\n");
free(authenticate);
return -1;
}
return -1;
if (drmGetMagic(c->base.drm.fd, &magic)) {
- fprintf(stderr, "DRI2: failed to get drm magic");
+ fprintf(stderr, "DRI2: failed to get drm magic\n");
return -1;
}