Commit 1fdbacbe authored by Adam Jackson's avatar Adam Jackson 💣 Committed by Adam Jackson

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's avatarAdam Jackson <ajax@redhat.com>
parent 32d8d53f
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment