Skip to content
Permalink
Browse files

OPS-6: Fix some F_MALLOC issues

    * fix missing #ifdef
    * fix badly migrated #ifdef
  • Loading branch information
liviuchircu committed Mar 13, 2019
1 parent af1f013 commit 67ed0ccbaa83ac91dfad887b39a603db05fb23db
Showing with 1 addition and 2 deletions.
  1. +1 −2 mem/f_malloc_dyn.h
@@ -192,14 +192,13 @@ void* fm_malloc(struct fm_block* qm, unsigned long size,
fm_split_frag(qm, frag, size, file, "fm_malloc frag", line);
#endif

#ifdef DBG_MALLOC
frag->file=file;
frag->func=func;
frag->line=line;
frag->check=ST_CHECK_PATTERN;
LM_GEN1(memlog, "%s_malloc(%lu), returns address %p\n", qm->name, size,
(char*)frag+sizeof(struct fm_frag));
#else
fm_split_frag(qm, frag, size);
#endif

solved:

0 comments on commit 67ed0cc

Please sign in to comment.
You can’t perform that action at this time.