summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-11-27 13:34:05 +1100
committerDaniel Stone <daniel@fooishbar.org>2009-01-20 15:32:19 +1100
commite1611d8d55ade35bf8c2e1da7bc2dbf05b011301 (patch)
tree1c04e1ca475c6081c1dc0ab6f5aac011c8fbdf35 /xkb
parent5ee504cae5f17d16ee7599beaa4b1944a9a8aee6 (diff)
XKB: Be more verbose about XkbCopyKeymap failure in debug mode
Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 12ef1207c..a12cb79f3 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -2130,26 +2130,42 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
memset(&changes, 0, sizeof(changes));
memset(&cause, 0, sizeof(cause));
- if (!src || !dst)
+ if (!src || !dst) {
+ DebugF("XkbCopyKeymap: src (%p) or dst (%p) is NULL\n", src, dst);
return FALSE;
+ }
if (src == dst)
return TRUE;
- if (!_XkbCopyClientMap(src, dst))
+ if (!_XkbCopyClientMap(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy client map\n");
return FALSE;
- if (!_XkbCopyServerMap(src, dst))
+ }
+ if (!_XkbCopyServerMap(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy server map\n");
return FALSE;
- if (!_XkbCopyIndicators(src, dst))
+ }
+ if (!_XkbCopyIndicators(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy indicators\n");
return FALSE;
- if (!_XkbCopyControls(src, dst))
+ }
+ if (!_XkbCopyControls(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy controls\n");
return FALSE;
- if (!_XkbCopyNames(src, dst))
+ }
+ if (!_XkbCopyNames(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy names\n");
return FALSE;
- if (!_XkbCopyCompat(src, dst))
+ }
+ if (!_XkbCopyCompat(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy compat map\n");
return FALSE;
- if (!_XkbCopyGeom(src, dst))
+ }
+ if (!_XkbCopyGeom(src, dst)) {
+ DebugF("XkbCopyKeymap: failed to copy geometry\n");
return FALSE;
+ }
for (tmpDev = inputInfo.devices; tmpDev && !pDev; tmpDev = tmpDev->next) {
if (tmpDev->key && tmpDev->key->xkbInfo &&