Improved assertion message when MEMP_SYS_TIMEOUT pool is empty

This commit is contained in:
goldsimon 2010-01-08 13:40:50 +00:00
parent cce192a671
commit 8a34c16aee

View File

@ -260,7 +260,7 @@ sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
timeout = memp_malloc(MEMP_SYS_TIMEOUT);
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;
}
timeout->next = NULL;