Display evdev bus/vendor/product/version in separate line

This commit is contained in:
Sascha Hlusiak
2008-04-09 15:09:46 +02:00
parent edcc8c26df
commit c3e3fb8795

View File

@@ -176,9 +176,9 @@ jstkOpenDevice_evdev(JoystickDevPtr joystick)
if (ioctl(joystick->fd, EVIOCGUNIQ(sizeof(uniq)), uniq) == -1)
strcpy(uniq, "No name");
xf86Msg(X_INFO, "Joystick: %s. %d axes, %d buttons.\n", name, axes, buttons);
xf86Msg(X_INFO, "Joystick: bus 0x%x vendor 0x%x product 0x%x version 0x%x\n",
id.bustype, id.vendor, id.product, id.version);
xf86Msg(X_INFO, "Joystick: %s. bus 0x%x vendor 0x%x product 0x%x version 0x%x\n",
name, id.bustype, id.vendor, id.product, id.version);
xf86Msg(X_INFO, "Joystick: found %d axes, %d buttons\n", axes, buttons);
joystick->read_proc = jstkReadData_evdev;
joystick->close_proc = jstkCloseDevice_evdev;