mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 05:28:02 +02:00
Better touch debugging messages
This commit is contained in:
parent
1f5bc7df7d
commit
8261415330
2 changed files with 8 additions and 8 deletions
|
|
@ -602,7 +602,7 @@ ei_touch_down(struct ei_touch *touch, double x, double y)
|
|||
|
||||
if (touch->state != TOUCH_IS_NEW) {
|
||||
log_bug_client(ei_device_get_context(device),
|
||||
"%s: device is not a keyboard\n", __func__);
|
||||
"%s: touch %u already down or up\n", __func__, touch->tracking_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -610,7 +610,7 @@ ei_touch_down(struct ei_touch *touch, double x, double y)
|
|||
list_for_each(r, &device->regions, link) {
|
||||
if (!ei_region_contains(r, x, y)) {
|
||||
log_bug_client(ei_device_get_context(device),
|
||||
"%s: invalid x/y coordinates\n", __func__);
|
||||
"%s: touch %u has invalid x/y coordinates\n", __func__, touch->tracking_id);
|
||||
touch->state = TOUCH_IS_UP;
|
||||
return;
|
||||
}
|
||||
|
|
@ -632,7 +632,7 @@ ei_touch_motion(struct ei_touch *touch, double x, double y)
|
|||
list_for_each(r, &device->regions, link) {
|
||||
if (!ei_region_contains(r, x, y)) {
|
||||
log_bug_client(ei_device_get_context(device),
|
||||
"%s: invalid x/y coordinates\n", __func__);
|
||||
"%s: touch %u has invalid x/y coordinates\n", __func__, touch->tracking_id);
|
||||
ei_touch_up(touch);
|
||||
return;
|
||||
}
|
||||
|
|
@ -647,7 +647,7 @@ ei_touch_up(struct ei_touch *touch)
|
|||
if (touch->state != TOUCH_IS_DOWN) {
|
||||
struct ei_device *device = ei_touch_get_device(touch);
|
||||
log_bug_client(ei_device_get_context(device),
|
||||
"%s: touch is not currently down\n", __func__);
|
||||
"%s: touch %u is not currently down\n", __func__, touch->tracking_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -559,7 +559,7 @@ eis_touch_down(struct eis_touch *touch, double x, double y)
|
|||
|
||||
if (touch->state != TOUCH_IS_NEW) {
|
||||
log_bug_client(eis_device_get_context(device),
|
||||
"%s: device is not a keyboard\n", __func__);
|
||||
"%s: touch %u already down or up\n", __func__, touch->tracking_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -567,7 +567,7 @@ eis_touch_down(struct eis_touch *touch, double x, double y)
|
|||
list_for_each(r, &device->regions, link) {
|
||||
if (!eis_region_contains(r, x, y)) {
|
||||
log_bug_client(eis_device_get_context(device),
|
||||
"%s: invalid x/y coordinates\n", __func__);
|
||||
"%s: touch %u has invalid x/y coordinates\n", __func__, touch->tracking_id);
|
||||
touch->state = TOUCH_IS_UP;
|
||||
return;
|
||||
}
|
||||
|
|
@ -589,7 +589,7 @@ eis_touch_motion(struct eis_touch *touch, double x, double y)
|
|||
list_for_each(r, &device->regions, link) {
|
||||
if (!eis_region_contains(r, x, y)) {
|
||||
log_bug_client(eis_device_get_context(device),
|
||||
"%s: invalid x/y coordinates\n", __func__);
|
||||
"%s: touch %u has invalid x/y coordinates\n", __func__, touch->tracking_id);
|
||||
eis_touch_up(touch);
|
||||
return;
|
||||
}
|
||||
|
|
@ -605,7 +605,7 @@ eis_touch_up(struct eis_touch *touch)
|
|||
|
||||
if (touch->state != TOUCH_IS_DOWN) {
|
||||
log_bug_client(eis_device_get_context(device),
|
||||
"%s: touch is not currently down\n", __func__);
|
||||
"%s: touch %u is not currently down\n", __func__, touch->tracking_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue