aboutsummaryrefslogtreecommitdiff
path: root/examples/touch.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-09 22:49:54 +0100
committeremersion <contact@emersion.fr>2018-07-09 22:49:54 +0100
commit7cbef152063e1fbb24e6204339ff4587a74be04b (patch)
treee5196a8d8931e1defd4d3b937913c9511be719b5 /examples/touch.c
parentffc8780893dd2c8a9ed2f7bd873ced576bc93cc1 (diff)
util: add wlr_ prefix to log symbols
Diffstat (limited to 'examples/touch.c')
-rw-r--r--examples/touch.c10
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);
}