mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
Improved assertion message when MEMP_SYS_TIMEOUT pool is empty
This commit is contained in:
parent
cce192a671
commit
8a34c16aee
@ -260,7 +260,7 @@ sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
|
|||||||
|
|
||||||
timeout = memp_malloc(MEMP_SYS_TIMEOUT);
|
timeout = memp_malloc(MEMP_SYS_TIMEOUT);
|
||||||
if (timeout == NULL) {
|
if (timeout == NULL) {
|
||||||
LWIP_ASSERT("sys_timeout: timeout != NULL", timeout != NULL);
|
LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timeout->next = NULL;
|
timeout->next = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user