drivers: winc1500: do not use net_analyze_stack

This API is unsafe. Use log_stack_usage() instead and
set the thread name.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-03-12 14:19:54 -07:00 committed by Anas Nashif
commit 2b38b3b33b

View file

@ -162,9 +162,7 @@ static struct winc1500_data w1500_data;
static void stack_stats(void)
{
net_analyze_stack("WINC1500 stack",
Z_THREAD_STACK_BUFFER(winc1500_stack),
K_THREAD_STACK_SIZEOF(winc1500_stack));
log_stack_usage(&winc1500_thread_data);
}
static char *socket_error_string(s8_t err)
@ -1106,6 +1104,7 @@ static int winc1500_init(struct device *dev)
(k_thread_entry_t)winc1500_thread, NULL, NULL, NULL,
K_PRIO_COOP(CONFIG_WIFI_WINC1500_THREAD_PRIO),
0, K_NO_WAIT);
k_thread_name_set(&winc1500_thread_data, "WINC1500");
LOG_DBG("WINC1500 driver Initialized");