From 279ad54b8f597a0b72791f73990234e6654edad9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 4 Jul 2025 13:06:17 +0200 Subject: [PATCH] xfree86: inputtest: use FatalError() instead of abort() Directly calling abort() doesn't print a stack trace, nor any useful message. Instead FatalError() should be used in cases, where there's really no other way than terminating the Xserver. The FatalError function also tries to make a smooth shutdown (eg. resetting video mode), so console doesn't end up locked. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/drivers/inputtest/xf86-input-inputtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/inputtest/xf86-input-inputtest.c b/hw/xfree86/drivers/inputtest/xf86-input-inputtest.c index 8f63aaef9..ddebdc33a 100644 --- a/hw/xfree86/drivers/inputtest/xf86-input-inputtest.c +++ b/hw/xfree86/drivers/inputtest/xf86-input-inputtest.c @@ -830,7 +830,7 @@ get_event_size(enum xf86ITEventType type) case XF86IT_EVENT_GESTURE_PINCH: return sizeof(xf86ITEventGesturePinch); case XF86IT_EVENT_GESTURE_SWIPE: return sizeof(xf86ITEventGestureSwipe); } - abort(); + FatalError("xf86-input-inputtest: get_event_size() got undefined event type %d\n", (int)type); } static void