aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-01-07 19:08:31 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-01-07 19:08:31 +0100
commit96dc3bc0e0827eab2c37beb897577d3d0505ca33 (patch)
tree3e5eb9c4456d93286759d7831bd89aa0c2461ed0
parent43ea7c79785e4ea3518b2d122b6e47891ab478d9 (diff)
downloadrelabsd-96dc3bc0e0827eab2c37beb897577d3d0505ca33.zip
relabsd-96dc3bc0e0827eab2c37beb897577d3d0505ca33.tar.bz2
Print device name + message when not compatible.
-rw-r--r--src/compatibility_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compatibility_test.c b/src/compatibility_test.c
index 1741e07..8d3f0f2 100644
--- a/src/compatibility_test.c
+++ b/src/compatibility_test.c
@@ -25,6 +25,8 @@ static int test_for_axis_and_print_info
device_has_rel = 0;
+ printf("Name: %s\n", libevdev_get_name(libevdev));
+
for (i = 0; i < RELABSD_AXIS_VALID_AXES_COUNT; ++i)
{
rel_code = relabsd_axis_name_to_evdev_rel((enum relabsd_axis_name) i);
@@ -81,6 +83,8 @@ int relabsd_compatibility_test_main
if (!is_compatible)
{
+ printf("No relative axes.\n");
+
return 0;
}