From 0691ed9b8989764cce7bfe3768cfc29ff25dba09 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 14:32:32 +0000 Subject: [PATCH] d/wmr: Use U_TRACE_SET_THREAD_NAME --- src/xrt/drivers/wmr/wmr_bt_controller.c | 2 +- src/xrt/drivers/wmr/wmr_camera.c | 3 ++- src/xrt/drivers/wmr/wmr_hmd.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xrt/drivers/wmr/wmr_bt_controller.c b/src/xrt/drivers/wmr/wmr_bt_controller.c index 48433820d..5770d854e 100644 --- a/src/xrt/drivers/wmr/wmr_bt_controller.c +++ b/src/xrt/drivers/wmr/wmr_bt_controller.c @@ -377,7 +377,7 @@ wmr_bt_controller_update_inputs(struct xrt_device *xdev) static void * wmr_bt_controller_run_thread(void *ptr) { - DRV_TRACE_MARKER(); + U_TRACE_SET_THREAD_NAME("WMR: BT-Controller"); struct wmr_bt_controller *d = wmr_bt_controller(ptr); diff --git a/src/xrt/drivers/wmr/wmr_camera.c b/src/xrt/drivers/wmr/wmr_camera.c index 403d1cc19..fe5fe3dec 100644 --- a/src/xrt/drivers/wmr/wmr_camera.c +++ b/src/xrt/drivers/wmr/wmr_camera.c @@ -207,7 +207,7 @@ compute_frame_size(struct wmr_camera *cam) static void * wmr_cam_usb_thread(void *ptr) { - DRV_TRACE_MARKER(); + U_TRACE_SET_THREAD_NAME("WMR: USB-Camera"); struct wmr_camera *cam = ptr; @@ -223,6 +223,7 @@ wmr_cam_usb_thread(void *ptr) //! @todo Think this is not needed? what condition are we waiting for? os_thread_helper_wait_locked(&cam->usb_thread); os_thread_helper_unlock(&cam->usb_thread); + return NULL; } diff --git a/src/xrt/drivers/wmr/wmr_hmd.c b/src/xrt/drivers/wmr/wmr_hmd.c index afe1536b2..d09878bbb 100644 --- a/src/xrt/drivers/wmr/wmr_hmd.c +++ b/src/xrt/drivers/wmr/wmr_hmd.c @@ -581,7 +581,7 @@ control_read_packets(struct wmr_hmd *wh) static void * wmr_run_thread(void *ptr) { - DRV_TRACE_MARKER(); + U_TRACE_SET_THREAD_NAME("WMR: USB-HMD"); struct wmr_hmd *wh = (struct wmr_hmd *)ptr;