mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-07 13:30:20 +01:00
libei: better logging of capabilities
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3fc94f03b5
commit
02efb19e2b
1 changed files with 7 additions and 2 deletions
|
|
@ -420,8 +420,6 @@ handle_msg_added(struct ei *ei, uint32_t deviceid,
|
|||
{
|
||||
struct ei_device *d;
|
||||
|
||||
log_debug(ei, "Added device %d '%s' with caps %#x\n", deviceid, name, capabilities);
|
||||
|
||||
list_for_each(d, &ei->devices, link) {
|
||||
if (d->id == deviceid) {
|
||||
ei_device_set_name(d, name);
|
||||
|
|
@ -429,6 +427,13 @@ handle_msg_added(struct ei *ei, uint32_t deviceid,
|
|||
if (keymap_from_server)
|
||||
ei_device_set_keymap(d, keymap_type, keymap_fd, keymap_sz);
|
||||
ei_device_added(d);
|
||||
|
||||
log_debug(ei, "Added device %d '%s' caps: %s%s%s%s\n", deviceid, name,
|
||||
ei_device_has_capability(d, EI_DEVICE_CAP_POINTER) ? "p" : "",
|
||||
ei_device_has_capability(d, EI_DEVICE_CAP_POINTER_ABSOLUTE) ? "a" : "",
|
||||
ei_device_has_capability(d, EI_DEVICE_CAP_KEYBOARD) ? "k" : "",
|
||||
ei_device_has_capability(d, EI_DEVICE_CAP_TOUCH) ? "t" : "");
|
||||
|
||||
queue_added_event(d);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue