Skip to content

Commit

Permalink
net: conn_mgr: set a thread name
Browse files Browse the repository at this point in the history
Set a thread name for net conn_mgr, so that e.g. thread listings
within the shell are easier to look at.

Signed-off-by: Florian La Roche <[email protected]>
  • Loading branch information
laroche authored and aescolar committed Mar 2, 2024
1 parent 1493271 commit d835772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/net/conn_mgr/conn_mgr_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ static int conn_mgr_mon_init(void)
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE,
conn_mgr_mon_thread_fn,
NULL, NULL, NULL, THREAD_PRIORITY, 0, K_NO_WAIT);
k_thread_name_set(&conn_mgr_mon_thread, "conn_mgr_monitor");

return 0;
}
Expand Down

0 comments on commit d835772

Please sign in to comment.