Module: kamailio
Branch: master
Commit: 1ebdc5c2dd7640b778c0efac2baafe1894a75b77
URL:
https://github.com/kamailio/kamailio/commit/1ebdc5c2dd7640b778c0efac2baafe1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-23T10:42:54+02:00
core: mem - print line after file name in qm_status_filter()
---
Modified: src/core/mem/q_malloc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1ebdc5c2dd7640b778c0efac2baafe1…
Patch:
https://github.com/kamailio/kamailio/commit/1ebdc5c2dd7640b778c0efac2baafe1…
---
diff --git a/src/core/mem/q_malloc.c b/src/core/mem/q_malloc.c
index 5d05af88f9e..f440f452c1c 100644
--- a/src/core/mem/q_malloc.c
+++ b/src/core/mem/q_malloc.c
@@ -1023,9 +1023,9 @@ void qm_status_filter(void *qmp, str *fmatch, FILE *fp)
i, (f->u.is_free) ? 'A' : 'N',
(char *)f + sizeof(struct qm_frag), f, f->size,
FRAG_WAS_USED(f));
- fprintf(fp, " %s from %s: %s(%ld)\n",
- (f->u.is_free) ? "freed" : "alloc'd", f->file,
f->func,
- f->line);
+ fprintf(fp, " %s from %s:%ld / %s()\n",
+ (f->u.is_free) ? "freed" : "alloc'd", f->file,
f->line,
+ f->func);
fprintf(fp, " start check=%lx, end check= %lx, %lx\n",
f->check, FRAG_END(f)->check1, FRAG_END(f)->check2);
if(f->check != ST_CHECK_PATTERN) {
@@ -1061,9 +1061,9 @@ void qm_status_filter(void *qmp, str *fmatch, FILE *fp)
!= NULL))) {
fprintf(fp,
"unused fragm.: hash = %3d, fragment %p,"
- " address %p size %lu, created from %s: %s(%lu)\n",
+ " address %p size %lu, created from %s:%lu / %s()\n",
h, f, (char *)f + sizeof(struct qm_frag), f->size,
- f->file, f->func, f->line);
+ f->file, f->line, f->func);
}
#endif
}