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 */