From 8a34c16aeed29f1ab6a673b2cd9867e0535febb1 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 8 Jan 2010 13:40:50 +0000 Subject: [PATCH] Improved assertion message when MEMP_SYS_TIMEOUT pool is empty --- src/core/timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/timers.c b/src/core/timers.c index d5f17d4a..97628c7d 100644 --- a/src/core/timers.c +++ b/src/core/timers.c @@ -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;