From da810f10d732a312ccee88652141c1d165efc114 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 21 Jan 2021 13:24:00 +1000 Subject: keycodes: compress the high keycode warning No point spending 3 lines on this, especially given that this warning is always triggered. Signed-off-by: Peter Hutterer --- keycodes.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/keycodes.c b/keycodes.c index 51eeefb..4a8973c 100644 --- a/keycodes.c +++ b/keycodes.c @@ -334,10 +334,8 @@ AddKeyName(KeyNamesInfo * info, { if (!high_keycode_warned && warningLevel > 1) { - INFO("Unsupported high keycode %d for name <%s> ignored\n", + INFO("Keycodes above %d (e.g. <%s>) are not supported by X and are ignored\n", kc, name); - ACTION("X11 cannot support keycodes above 255.\n"); - ACTION("This warning only shows for the first high keycode.\n"); high_keycode_warned = True; } return True; @@ -598,10 +596,8 @@ HandleKeycodeDef(KeycodeDef * stmt, unsigned merge, KeyNamesInfo * info) { if (!high_keycode_warned && warningLevel > 1) { - INFO("Unsupported high keycode %d for name <%s> ignored\n", + INFO("Keycodes above %d (e.g. <%s>) are not supported by X and are ignored\n", code, stmt->name); - ACTION("X11 cannot support keycodes above 255.\n"); - ACTION("This warning only shows for the first high keycode.\n"); high_keycode_warned = True; } return 1; -- cgit v1.2.3