mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
mem: Move LWIP_DEBUGF out of critical section in mem_malloc
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
bab7a32eec
commit
e1ce5dc491
@ -732,10 +732,10 @@ mem_malloc_adjust_lfree:
|
|||||||
/* if we got interrupted by a mem_free, try again */
|
/* if we got interrupted by a mem_free, try again */
|
||||||
} while (local_mem_free_count != 0);
|
} while (local_mem_free_count != 0);
|
||||||
#endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
|
#endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
|
||||||
LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
|
|
||||||
MEM_STATS_INC(err);
|
MEM_STATS_INC(err);
|
||||||
LWIP_MEM_ALLOC_UNPROTECT();
|
LWIP_MEM_ALLOC_UNPROTECT();
|
||||||
sys_mutex_unlock(&mem_mutex);
|
sys_mutex_unlock(&mem_mutex);
|
||||||
|
LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user