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 /examples/multi-pointer.c | |
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 'examples/multi-pointer.c')
-rw-r--r-- | examples/multi-pointer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c index c5b2048f..58689649 100644 --- a/examples/multi-pointer.c +++ b/examples/multi-pointer.c @@ -73,7 +73,7 @@ struct sample_keyboard { void configure_cursor(struct wlr_cursor *cursor, struct wlr_input_device *device, struct sample_state *sample) { struct sample_output *output; - wlr_log(L_ERROR, "Configuring cursor %p for device %p", cursor, device); + wlr_log(WLR_ERROR, "Configuring cursor %p for device %p", cursor, device); // reset mappings wlr_cursor_map_to_output(cursor, NULL); @@ -237,7 +237,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, @@ -277,7 +277,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 = { .default_color = { 0.25f, 0.25f, 0.25f, 1 }, @@ -303,17 +303,17 @@ int main(int argc, char *argv[]) { struct wlr_xcursor_theme *theme = wlr_xcursor_theme_load("default", 16); if (!theme) { - wlr_log(L_ERROR, "Failed to load cursor theme"); + wlr_log(WLR_ERROR, "Failed to load cursor theme"); return 1; } state.xcursor = wlr_xcursor_theme_get_cursor(theme, "left_ptr"); if (!state.xcursor) { - wlr_log(L_ERROR, "Failed to load left_ptr cursor"); + wlr_log(WLR_ERROR, "Failed to load left_ptr cursor"); return 1; } 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); } |