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>
Mon, 4 Dec 2023 10:31:00 +0000 (19:31 +0900)
Change-Id: I0f5ad0fccf0c952af03e5ab4c829001f31312235

src/libinput.c

index dd3358f92bd2a1b7cae4aabf42cfae627893eb02..2ee23ee6c8d2c853f9f9f0066086744324859ff2 100644 (file)
@@ -2631,6 +2631,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);
 
@@ -2652,6 +2653,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);
 
@@ -2718,6 +2720,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();
@@ -2751,12 +2754,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) {
@@ -2780,6 +2784,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();
@@ -2810,6 +2815,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();
@@ -2915,6 +2921,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();
@@ -2982,6 +2989,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();
@@ -3018,6 +3026,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();
@@ -3051,6 +3060,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();
@@ -3496,6 +3506,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) {