Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/dlt_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -3949,7 +3949,7 @@ void *dlt_user_trace_network_segmented_thread(void *unused)
/* Unused on purpose. */
(void)unused;
#ifdef DLT_USE_PTHREAD_SETNAME_NP
if (pthread_setname_np(dlt_user.dlt_segmented_nwt_handle, "dlt_segmented"))
if (pthread_setname_np(pthread_self(), "dlt_segmented"))
dlt_log(LOG_WARNING, "Failed to rename segmented thread!\n");
#elif linux
if (prctl(PR_SET_NAME, "dlt_segmented", 0, 0, 0) < 0)
Expand Down Expand Up @@ -4835,7 +4835,7 @@ void *dlt_user_housekeeperthread_function(void *ptr)
#endif

#ifdef DLT_USE_PTHREAD_SETNAME_NP
if (pthread_setname_np(dlt_housekeeperthread_handle, "dlt_housekeeper"))
if (pthread_setname_np(pthread_self(), "dlt_housekeeper"))
dlt_log(LOG_WARNING, "Failed to rename housekeeper thread!\n");
#elif linux
if (prctl(PR_SET_NAME, "dlt_housekeeper", 0, 0, 0) < 0)
Expand Down