tty: Log error if we cannot setup a valid tty keyboard mode
authorRob Bradford <rob@linux.intel.com>
Tue, 9 Oct 2012 17:44:30 +0000 (18:44 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 10 Oct 2012 02:50:13 +0000 (22:50 -0400)
commit592c07a6b9b0fa0caedc9fc67dec8ff0027399f4
treed5be7c09a3458525bd0ef1e2f4393f8e8d1d9608
parent3de191e6b0aba72bac29141da6844ea3092d7c85
tty: Log error if we cannot setup a valid tty keyboard mode

The previous logging code would never be reached - this change makes sure a
message is reported if changing keyboard mode to either the desired (K_OFF) or
fallback (K_RAW with handler that drops the events) fails.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
src/tty.c