diff options
| author | emersion <contact@emersion.fr> | 2019-01-15 09:16:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 09:16:06 +0100 |
| commit | 56b672a16c248c268fde17243a914a3bcfa4ac47 (patch) | |
| tree | 01a33b3422b9d17ad3b63fb4decb972876210f88 /seat.c | |
| parent | fcf1bd4ebea97ae6ecd30e4f4e0c526b405b871a (diff) | |
| parent | e3935ad1431623b5e3966e95cd75b45e7e00e278 (diff) | |
Merge pull request #7 from RedSoxFan/remove-wlroots
Implement logging and remove wlroots dependency
Diffstat (limited to 'seat.c')
| -rw-r--r-- | seat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,8 +2,8 @@ #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> -#include <wlr/util/log.h> #include <xkbcommon/xkbcommon.h> +#include "log.h" #include "swaylock.h" #include "seat.h" @@ -12,13 +12,13 @@ static void keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard, struct swaylock_state *state = data; if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) { close(fd); - wlr_log(WLR_ERROR, "Unknown keymap format %d, aborting", format); + swaylock_log(LOG_ERROR, "Unknown keymap format %d, aborting", format); exit(1); } char *map_shm = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); if (map_shm == MAP_FAILED) { close(fd); - wlr_log(WLR_ERROR, "Unable to initialize keymap shm, aborting"); + swaylock_log(LOG_ERROR, "Unable to initialize keymap shm, aborting"); exit(1); } struct xkb_keymap *keymap = xkb_keymap_new_from_string( |
