Module: kamailio Branch: master Commit: acccc6cd6bd1dbb83513175edd391cfb35ed95cc URL: https://github.com/kamailio/kamailio/commit/acccc6cd6bd1dbb83513175edd391cfb...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-07-11T13:47:05+02:00
core: mem/qm - test cfg core mem_status_all to print memory status
---
Modified: mem/q_malloc.c
---
Diff: https://github.com/kamailio/kamailio/commit/acccc6cd6bd1dbb83513175edd391cfb... Patch: https://github.com/kamailio/kamailio/commit/acccc6cd6bd1dbb83513175edd391cfb...
---
diff --git a/mem/q_malloc.c b/mem/q_malloc.c index 079ef0b..8918411 100644 --- a/mem/q_malloc.c +++ b/mem/q_malloc.c @@ -793,7 +793,7 @@ void qm_status(void* qmp) "dumping all alloc'ed. fragments:\n"); for (f=qm->first_frag, i=0;(char*)f<(char*)qm->last_frag_end;f=FRAG_NEXT(f) ,i++){ - if (! f->u.is_free){ + if ((! f->u.is_free) || (cfg_get(core, core_cfg, mem_status_all)!=0)){ LOG_(DEFAULT_FACILITY, memlog, "qm_status: ", " %3d. %c address=%p frag=%p size=%lu used=%d\n", i,