[PATCH xserver] xkb: Print the xkbcomp path being executed when we fail to compile.

Eric Anholt eric at anholt.net
Tue Oct 31 19:22:31 UTC 2017


I don't know how many times I've had a broken server due to a bad
directory to xkbcomp, and only finding the whole path has shown me
where I went wrong.
---
 xkb/ddxLoad.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/xkb/ddxLoad.c b/xkb/ddxLoad.c
index f71815aa814b..bbe39524557a 100644
--- a/xkb/ddxLoad.c
+++ b/xkb/ddxLoad.c
@@ -191,8 +191,10 @@ RunXkbComp(xkbcomp_buffer_callback callback, void *userdata)
 #endif
             return xnfstrdup(keymap);
         }
-        else
-            LogMessage(X_ERROR, "Error compiling keymap (%s)\n", keymap);
+        else {
+            LogMessage(X_ERROR, "Error compiling keymap (%s) executing '%s'\n",
+                       keymap, buf);
+        }
 #ifdef WIN32
         /* remove the temporary file */
         unlink(tmpname);
-- 
2.15.0



More information about the xorg-devel mailing list