/[lwip]/lwip/src/core/memp.c
ViewVC logotype

Diff of /lwip/src/core/memp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by jani, Thu Feb 26 10:43:09 2004 UTC revision 1.25 by christiaans, Fri Nov 25 12:03:38 2005 UTC
# Line 124  static sys_sem_t mutex; Line 124  static sys_sem_t mutex;
124  static int  static int
125  memp_sanity(void)  memp_sanity(void)
126  {  {
127    int i, c;    s16_t i, c;
128    struct memp *m, *n;    struct memp *m, *n;
129    
130    for(i = 0; i < MEMP_MAX; i++) {    for(i = 0; i < MEMP_MAX; i++) {
# Line 222  memp_malloc(memp_t type) Line 222  memp_malloc(memp_t type)
222      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));
223      return mem;      return mem;
224    } else {    } else {
225      LWIP_DEBUGF(MEMP_DEBUG | 2, ("memp_malloc: out of memory in pool %d\n", type));      LWIP_DEBUGF(MEMP_DEBUG | 2, ("memp_malloc: out of memory in pool %"S16_F"\n", type));
226  #if MEMP_STATS  #if MEMP_STATS
227      ++lwip_stats.memp[type].err;      ++lwip_stats.memp[type].err;
228  #endif /* MEMP_STATS */  #endif /* MEMP_STATS */

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26