localed: be more verbose when keymap conversion to X11 fails
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 May 2016 02:25:09 +0000 (22:25 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Jun 2016 13:22:33 +0000 (09:22 -0400)
commit6f3287b346fdcef4e1b5dd4aaeae1ee47e49e94d
tree518a9db3c41af73817067525aa98bfef8207cf5a
parentaa63b56f5f56c9aa9b0ed00b4213c258c629c614
localed: be more verbose when keymap conversion to X11 fails

I was puzzled why "localectl set-keymap pl" does not change the X11 keymap.
Output a message at notice level, becuase not converting the X11 keymap
is most likely an error. We usually do not output non-debug messages
from "library" code, but this isn't really library code, it's split out
to a separate file only to allow it to be called from tests.

(pl is not converted because we only have a mapping for pl2. This is
intentional, even though we might want to change this. In any case, the
conversion code works correctly.)
src/locale/keymap-util.c