libinput.c: add logs for debugging in TIZEN
authorduna.oh <duna.oh@samsung.com>
Thu, 20 Jul 2023 07:03:37 +0000 (16:03 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 4 Feb 2025 10:03:45 +0000 (19:03 +0900)
Change-Id: I0f5ad0fccf0c952af03e5ab4c829001f31312235

src/libinput.c

index 2271d6b41ee7b3d7d0a2d1bb253d95f447771be6..66f517e0518ce4c17cf05935b1ba93696840ab40 100644 (file)
@@ -2632,6 +2632,7 @@ notify_added_device(struct libinput_device *device)
        struct libinput_event_device_notify *added_device_event;
 
        TRACE_INPUT_BEGIN(notify_added_device);
+       log_debug(device->seat->libinput, "[libinput] notify_added_device\n");
 
        added_device_event = zalloc(sizeof *added_device_event);
 
@@ -2653,6 +2654,7 @@ notify_removed_device(struct libinput_device *device)
        struct libinput_event_device_notify *removed_device_event;
 
        TRACE_INPUT_BEGIN(notify_removed_device);
+       log_debug(device->seat->libinput, "[libinput] notify_removed_device\n");
 
        removed_device_event = zalloc(sizeof *removed_device_event);
 
@@ -2719,6 +2721,7 @@ keyboard_notify_key(struct libinput_device *device,
        uint32_t seat_key_count;
 
        TRACE_INPUT_BEGIN(keyboard_notify_key);
+       log_debug(device->seat->libinput, "[libinput] keyboard_notify_key\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_KEYBOARD)) {
                TRACE_INPUT_END();
@@ -2752,12 +2755,13 @@ pointer_notify_motion(struct libinput_device *device,
        struct libinput_event_pointer *motion_event;
 
        TRACE_INPUT_BEGIN(pointer_notify_motion);
+       log_debug(device->seat->libinput, "[libinput] pointer_notify_motion\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) {
                TRACE_INPUT_END();
                return;
        }
-       
+
        motion_event = zalloc(sizeof *motion_event);
 
        *motion_event = (struct libinput_event_pointer) {
@@ -2781,6 +2785,7 @@ pointer_notify_motion_absolute(struct libinput_device *device,
        struct libinput_event_pointer *motion_absolute_event;
 
        TRACE_INPUT_BEGIN(pointer_notify_motion_absolute);
+       log_debug(device->seat->libinput, "[libinput] pointer_notify_motion_absolute\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) {
                TRACE_INPUT_END();
@@ -2811,6 +2816,7 @@ pointer_notify_button(struct libinput_device *device,
        int32_t seat_button_count;
 
        TRACE_INPUT_BEGIN(pointer_notify_button);
+       log_debug(device->seat->libinput, "[libinput] pointer_notify_button\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) {
                TRACE_INPUT_END();
@@ -2916,6 +2922,7 @@ pointer_notify_axis_legacy_wheel(struct libinput_device *device,
        const struct wheel_v120 zero_v120 = {0};
 
        TRACE_INPUT_BEGIN(pointer_notify_axis);
+       log_debug(device->seat->libinput, "[libinput] pointer_notify_axis\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_POINTER)) {
                TRACE_INPUT_END();
@@ -2983,6 +2990,7 @@ touch_notify_touch_down(struct libinput_device *device,
        struct libinput_event_touch *touch_event;
 
        TRACE_INPUT_BEGIN(touch_notify_touch_down);
+       log_debug(device->seat->libinput, "[libinput] touch_notify_touch_down\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) {
                TRACE_INPUT_END();
@@ -3019,6 +3027,7 @@ touch_notify_touch_motion(struct libinput_device *device,
        struct libinput_event_touch *touch_event;
 
        TRACE_INPUT_BEGIN(touch_notify_touch_motion);
+       log_debug(device->seat->libinput, "[libinput] touch_notify_touch_motion\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) {
                TRACE_INPUT_END();
@@ -3052,6 +3061,7 @@ touch_notify_touch_up(struct libinput_device *device,
        struct libinput_event_touch *touch_event;
 
        TRACE_INPUT_BEGIN(touch_notify_touch_up);
+       log_debug(device->seat->libinput, "[libinput] touch_notify_touch_up\n");
 
        if (!device_has_cap(device, LIBINPUT_DEVICE_CAP_TOUCH)) {
                TRACE_INPUT_END();
@@ -3541,6 +3551,7 @@ touch_notify_aux_data(struct libinput_device *device,
        struct libinput_event_touch_aux_data *touch_aux_data_event;
 
        TRACE_INPUT_BEGIN(touch_notify_aux_data);
+       log_debug(device->seat->libinput, "[libinput] touch_notify_aux_data\n");
 
        touch_aux_data_event = zalloc(sizeof *touch_aux_data_event);
        if (!touch_aux_data_event) {