diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-09 16:12:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 16:12:20 -0700 |
commit | 2518de655c7278728736d22549656c639e4c92f0 (patch) | |
tree | acd08ceb9709eb25541fa02fbc533a7c6a99dbad /backend/x11 | |
parent | e78d72f42e10b43a76ef5ba6b8c4b3b470b25245 (diff) | |
parent | 7cbef152063e1fbb24e6204339ff4587a74be04b (diff) |
Merge pull request #1126 from emersion/wlr-log-prefix
util: add wlr_ prefix to log symbols
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/backend.c | 8 | ||||
-rw-r--r-- | backend/x11/output.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index e35cbed7..cbe4833b 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -244,13 +244,13 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, x11->xlib_conn = XOpenDisplay(x11_display); if (!x11->xlib_conn) { - wlr_log(L_ERROR, "Failed to open X connection"); + wlr_log(WLR_ERROR, "Failed to open X connection"); goto error_x11; } x11->xcb_conn = XGetXCBConnection(x11->xlib_conn); if (!x11->xcb_conn || xcb_connection_has_error(x11->xcb_conn)) { - wlr_log(L_ERROR, "Failed to open xcb connection"); + wlr_log(WLR_ERROR, "Failed to open xcb connection"); goto error_display; } @@ -261,7 +261,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, int events = WL_EVENT_READABLE | WL_EVENT_ERROR | WL_EVENT_HANGUP; x11->event_source = wl_event_loop_add_fd(ev, fd, events, x11_event, x11); if (!x11->event_source) { - wlr_log(L_ERROR, "Could not create event source"); + wlr_log(WLR_ERROR, "Could not create event source"); goto error_display; } @@ -275,7 +275,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, x11->xlib_conn, NULL, x11->screen->root_visual); if (x11->renderer == NULL) { - wlr_log(L_ERROR, "Failed to create renderer"); + wlr_log(WLR_ERROR, "Failed to create renderer"); goto error_event; } diff --git a/backend/x11/output.c b/backend/x11/output.c index c619d226..9f8918ab 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -134,7 +134,7 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) { output->surf = wlr_egl_create_surface(&x11->egl, &output->win); if (!output->surf) { - wlr_log(L_ERROR, "Failed to create EGL surface"); + wlr_log(WLR_ERROR, "Failed to create EGL surface"); free(output); return NULL; } |