aboutsummaryrefslogtreecommitdiff
path: root/rootston/keyboard.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-09 16:12:20 -0700
committerGitHub <noreply@github.com>2018-07-09 16:12:20 -0700
commit2518de655c7278728736d22549656c639e4c92f0 (patch)
treeacd08ceb9709eb25541fa02fbc533a7c6a99dbad /rootston/keyboard.c
parente78d72f42e10b43a76ef5ba6b8c4b3b470b25245 (diff)
parent7cbef152063e1fbb24e6204339ff4587a74be04b (diff)
Merge pull request #1126 from emersion/wlr-log-prefix
util: add wlr_ prefix to log symbols
Diffstat (limited to 'rootston/keyboard.c')
-rw-r--r--rootston/keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rootston/keyboard.c b/rootston/keyboard.c
index b5dac51c..6697ca83 100644
--- a/rootston/keyboard.c
+++ b/rootston/keyboard.c
@@ -115,7 +115,7 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
const char *shell_cmd = command + strlen(exec_prefix);
pid_t pid = fork();
if (pid < 0) {
- wlr_log(L_ERROR, "cannot execute binding command: fork() failed");
+ wlr_log(WLR_ERROR, "cannot execute binding command: fork() failed");
return;
} else if (pid == 0) {
execl("/bin/sh", "/bin/sh", "-c", shell_cmd, (void *)NULL);
@@ -126,7 +126,7 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
view_maximize(focus, !focus->maximized);
}
} else if (strcmp(command, "nop") == 0) {
- wlr_log(L_DEBUG, "nop command");
+ wlr_log(WLR_DEBUG, "nop command");
} else if (strcmp(command, "toggle_outputs") == 0) {
outputs_enabled = !outputs_enabled;
struct roots_output *output;
@@ -134,7 +134,7 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
wlr_output_enable(output->wlr_output, outputs_enabled);
}
} else {
- wlr_log(L_ERROR, "unknown binding command: %s", command);
+ wlr_log(WLR_ERROR, "unknown binding command: %s", command);
}
}
@@ -369,7 +369,7 @@ struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device,
rules.options = config->options;
struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (context == NULL) {
- wlr_log(L_ERROR, "Cannot create XKB context");
+ wlr_log(WLR_ERROR, "Cannot create XKB context");
return NULL;
}
@@ -377,7 +377,7 @@ struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device,
XKB_KEYMAP_COMPILE_NO_FLAGS);
if (keymap == NULL) {
xkb_context_unref(context);
- wlr_log(L_ERROR, "Cannot create XKB keymap");
+ wlr_log(WLR_ERROR, "Cannot create XKB keymap");
return NULL;
}