Commit 24713f67 authored by U. Artie Eoff's avatar U. Artie Eoff Committed by Kristian H. Kristensen

libinput-seat: literal values for WESTON_LIBINPUT_LOG_PRIORITY

Only accept specific literal values from the environment variable
WESTON_LIBINPUT_LOG_PRIORITY... "debug", "info", or "error".
Signed-off-by: U. Artie Eoff's avatarU. Artie Eoff <>
parent 2d13fde9
......@@ -271,8 +271,15 @@ udev_input_init(struct udev_input *input, struct weston_compositor *c, struct ud
libinput_log_set_handler(&libinput_log_func, NULL);
log_priority = getenv("WESTON_LIBINPUT_LOG_PRIORITY");
if (log_priority) {
libinput_log_set_priority(strtol(log_priority, NULL, 10));
if (strcmp(log_priority, "debug") == 0) {
} else if (strcmp(log_priority, "info") == 0) {
} else if (strcmp(log_priority, "error") == 0) {
input->libinput = libinput_udev_create_for_seat(&libinput_interface, input,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment