mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 13:08:04 +02:00
test: abort() for invalid logging priorities
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
8b60578c8f
commit
44f7446b2a
1 changed files with 2 additions and 0 deletions
|
|
@ -372,6 +372,8 @@ litest_log_handler(struct libinput *libinput,
|
||||||
case LIBINPUT_LOG_PRIORITY_INFO: priority = "info"; break;
|
case LIBINPUT_LOG_PRIORITY_INFO: priority = "info"; break;
|
||||||
case LIBINPUT_LOG_PRIORITY_ERROR: priority = "error"; break;
|
case LIBINPUT_LOG_PRIORITY_ERROR: priority = "error"; break;
|
||||||
case LIBINPUT_LOG_PRIORITY_DEBUG: priority = "debug"; break;
|
case LIBINPUT_LOG_PRIORITY_DEBUG: priority = "debug"; break;
|
||||||
|
default:
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "litest %s: ", priority);
|
fprintf(stderr, "litest %s: ", priority);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue