diff options
Diffstat (limited to 'examples/touch.c')
-rw-r--r-- | examples/touch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/touch.c b/examples/touch.c index 0e77b48e..9954cdbd 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -208,7 +208,7 @@ void new_input_notify(struct wl_listener *listener, void *data) { rules.options = getenv("XKB_DEFAULT_OPTIONS"); struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); if (!context) { - wlr_log(L_ERROR, "Failed to create XKB context"); + wlr_log(WLR_ERROR, "Failed to create XKB context"); exit(1); } wlr_keyboard_set_keymap(device->keyboard, xkb_map_new_from_names(context, @@ -236,7 +236,7 @@ void new_input_notify(struct wl_listener *listener, void *data) { int main(int argc, char *argv[]) { - wlr_log_init(L_DEBUG, NULL); + wlr_log_init(WLR_DEBUG, NULL); struct wl_display *display = wl_display_create(); struct sample_state state = { .display = display @@ -258,19 +258,19 @@ int main(int argc, char *argv[]) { state.renderer = wlr_backend_get_renderer(wlr); if (!state.renderer) { - wlr_log(L_ERROR, "Could not start compositor, OOM"); + wlr_log(WLR_ERROR, "Could not start compositor, OOM"); exit(EXIT_FAILURE); } state.cat_texture = wlr_texture_from_pixels(state.renderer, WL_SHM_FORMAT_ARGB8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, cat_tex.pixel_data); if (!state.cat_texture) { - wlr_log(L_ERROR, "Could not start compositor, OOM"); + wlr_log(WLR_ERROR, "Could not start compositor, OOM"); exit(EXIT_FAILURE); } if (!wlr_backend_start(wlr)) { - wlr_log(L_ERROR, "Failed to start backend"); + wlr_log(WLR_ERROR, "Failed to start backend"); wlr_backend_destroy(wlr); exit(1); } |