xwayland: Fix error strings
Fix missing newlines from error string and fix grammar. Signed-off-by: Robert Ancell <robert.ancell@canonical.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
d7091a21d9
commit
6b65e96189
|
@ -310,7 +310,7 @@ xwl_drm_init_egl(struct xwl_screen *xwl_screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!epoxy_has_gl_extension("GL_OES_EGL_image")) {
|
if (!epoxy_has_gl_extension("GL_OES_EGL_image")) {
|
||||||
ErrorF("GL_OES_EGL_image no available");
|
ErrorF("GL_OES_EGL_image not available\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ xwl_drm_handle_device(void *data, struct wl_drm *drm, const char *device)
|
||||||
|
|
||||||
xwl_screen->drm_fd = open(xwl_screen->device_name, O_RDWR | O_CLOEXEC);
|
xwl_screen->drm_fd = open(xwl_screen->device_name, O_RDWR | O_CLOEXEC);
|
||||||
if (xwl_screen->drm_fd == -1) {
|
if (xwl_screen->drm_fd == -1) {
|
||||||
ErrorF("wayland-egl: could not open %s (%s)",
|
ErrorF("wayland-egl: could not open %s (%s)\n",
|
||||||
xwl_screen->device_name, strerror(errno));
|
xwl_screen->device_name, strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -540,7 +540,7 @@ create_input_device(struct xwl_screen *xwl_screen, uint32_t id)
|
||||||
|
|
||||||
xwl_seat = calloc(sizeof *xwl_seat, 1);
|
xwl_seat = calloc(sizeof *xwl_seat, 1);
|
||||||
if (xwl_seat == NULL) {
|
if (xwl_seat == NULL) {
|
||||||
ErrorF("create_input ENOMEM");
|
ErrorF("create_input ENOMEM\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
|
||||||
|
|
||||||
xwl_output = calloc(sizeof *xwl_output, 1);
|
xwl_output = calloc(sizeof *xwl_output, 1);
|
||||||
if (xwl_output == NULL) {
|
if (xwl_output == NULL) {
|
||||||
ErrorF("create_output ENOMEM");
|
ErrorF("create_output ENOMEM\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
|
||||||
wl_output_add_listener(xwl_output->output, &output_listener, xwl_output);
|
wl_output_add_listener(xwl_output->output, &output_listener, xwl_output);
|
||||||
|
|
||||||
if (snprintf(name, sizeof name, "XWAYLAND%d", serial++) < 0) {
|
if (snprintf(name, sizeof name, "XWAYLAND%d", serial++) < 0) {
|
||||||
ErrorF("create_output ENOMEM");
|
ErrorF("create_output ENOMEM\n");
|
||||||
free(xwl_output);
|
free(xwl_output);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user