[PATCH libinput 4/6] test: abort() for invalid logging priorities
Peter Hutterer
peter.hutterer at who-t.net
Thu Mar 12 17:37:48 PDT 2015
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/litest.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/litest.c b/test/litest.c
index 3646446..ad0aff2 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -372,6 +372,8 @@ litest_log_handler(struct libinput *libinput,
case LIBINPUT_LOG_PRIORITY_INFO: priority = "info"; break;
case LIBINPUT_LOG_PRIORITY_ERROR: priority = "error"; break;
case LIBINPUT_LOG_PRIORITY_DEBUG: priority = "debug"; break;
+ default:
+ abort();
}
fprintf(stderr, "litest %s: ", priority);
--
2.1.0
More information about the wayland-devel
mailing list