diff --git a/tools/ei-debug-events.c b/tools/ei-debug-events.c index 5f4b5c7..35cb065 100644 --- a/tools/ei-debug-events.c +++ b/tools/ei-debug-events.c @@ -152,20 +152,20 @@ print_device_details(struct ei_event *event) printf(" type: %s\n", ei_device_get_type(device) == EI_DEVICE_TYPE_VIRTUAL ? "virtual" : "physical"); printf(" capabilities: [%s]\n", capabilities); - idx = 0; struct ei_region *region; while ((region = ei_device_get_region(device, idx++))) { if (idx == 1) printf(" regions:\n"); - uint32_t w = ei_region_get_width(region); - uint32_t h = ei_region_get_height(region); - uint32_t x = ei_region_get_x(region); - uint32_t y = ei_region_get_y(region); - double scale = ei_region_get_physical_scale(region); + uint32_t w = ei_region_get_width(region); + uint32_t h = ei_region_get_height(region); + uint32_t x = ei_region_get_x(region); + uint32_t y = ei_region_get_y(region); + double scale = ei_region_get_physical_scale(region); - printf(" - %ux%u@%u,%u*%.2f\n", w, h, x, y, scale); + + printf(" - %ux%u@%u,%u*%.2f\n", w, h, x, y, scale); } struct ei_keymap *keymap = ei_device_keyboard_get_keymap(device);