diff options
author | Adam Jackson <ajax@redhat.com> | 2018-10-17 11:44:37 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-10-17 11:44:37 -0400 |
commit | c674b2152e5530fd4601d32f2cb5f455e7ef4809 (patch) | |
tree | 89b28fc41f3735d8fff719795c51754c0dd45303 | |
parent | 2abe23d23d3755335c10ff573e4e1f93b682e9d9 (diff) | |
download | xorg-app-xkbcomp-quieter-warnings.tar.gz |
Suppress high-keycode warnings at the default warning levelquieter-warnings
We expect evdev to have keycodes above 255, there's no reason to warn
about this.
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | keycodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -332,7 +332,7 @@ AddKeyName(KeyNamesInfo * info, if ((kc < info->effectiveMin) || (kc > info->effectiveMax)) { - if (!high_keycode_warned) + if (!high_keycode_warned && warningLevel > 1) { WARN2("Unsupported high keycode %d for name <%s> ignored\n", kc, name); @@ -596,7 +596,7 @@ HandleKeycodeDef(KeycodeDef * stmt, unsigned merge, KeyNamesInfo * info) code = result.ival; if ((code < info->effectiveMin) || (code > info->effectiveMax)) { - if (!high_keycode_warned) + if (!high_keycode_warned && warningLevel > 1) { WARN2("Unsupported high keycode %d for name <%s> ignored\n", code, stmt->name); |