Commit 673d9462 authored by Peter Hutterer's avatar Peter Hutterer

evdev: default to log error priority

Fixes compiler warning:
evdev.c:2899:2: warning: 'pri' may be used uninitialized in this function
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 6d27ff38
......@@ -2878,7 +2878,7 @@ libevdev_log_func(const struct libevdev *evdev,
va_list args)
struct libinput *libinput = data;
enum libinput_log_priority pri;
enum libinput_log_priority pri = LIBEVDEV_LOG_ERROR;
const char prefix[] = "libevdev: ";
char fmt[strlen(format) + strlen(prefix) + 1];
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