diff options
author | Adam Jackson <ajax@redhat.com> | 2018-10-17 11:44:37 -0400 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2018-12-11 18:51:55 +0000 |
commit | 1fdbacbe34742328b2a95742982b6017f60a1342 (patch) | |
tree | dc99aecad154a345ea075063e1b6640e9a8e8efc /keycodes.c | |
parent | 32d8d53fc1b622d97b3b8eb7b8b5e8354eda60a5 (diff) |
Suppress high-keycode warnings at the default warning level
We expect evdev to have keycodes above 255, there's no reason to warn
about this.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'keycodes.c')
-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); |