summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-11-25 17:44:57 +0100
committerMartin Pitt <martinpitt@gnome.org>2013-11-25 17:44:57 +0100
commit0ba696e20c94ef26275ffc0cfb3e54429d36e806 (patch)
tree1a139d0f4ca9f4729847e3216c32c7f29bebfc02 /src
parentd2bd639262a45ba4f686ab4a9555f2e8a0337d34 (diff)
udev-builtin-keyboard: More useful error message
Make the "Error calling EVIOCSKEYCODE" error message more useful by mentioning which scan/key code it tried to set.
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
index 8f457ab4a2..b510a42eb9 100644
--- a/src/udev/udev-builtin-keyboard.c
+++ b/src/udev/udev-builtin-keyboard.c
@@ -143,7 +143,7 @@ static int builtin_keyboard(struct udev_device *dev, int argc, char *argv[], boo
log_debug("keyboard: mapping scan code %d (0x%x) to key code %d (0x%x)\n",
map[i].scan, map[i].scan, map[i].key, map[i].key);
if (ioctl(fd, EVIOCSKEYCODE, &map[i]) < 0)
- log_error("Error calling EVIOCSKEYCODE: %m\n");
+ log_error("Error calling EVIOCSKEYCODE (scan code 0x%x, key code %d): %m\n", map[i].scan, map[i].key);
}
/* install list of force-release codes */