From 0ba696e20c94ef26275ffc0cfb3e54429d36e806 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 25 Nov 2013 17:44:57 +0100 Subject: 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. --- src/udev/udev-builtin-keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3-54-g00ecf