infra: discriminate tmp memleak from final MEMLEAK

This commit is contained in:
Thomas Schoebel-Theuer 2019-11-09 09:17:40 +01:00
parent 2635ffe15d
commit 3a77e858bf
1 changed files with 7 additions and 1 deletions

View File

@ -1947,9 +1947,15 @@ int mars_free_brick(struct mars_brick *brick)
break;
}
if (maxsleep > 0) {
MARS_WRN("MEMLEAK: brick '%s' has %d mrefs allocated (total = %d, maxsleep = %d)\n", brick->brick_path, count, atomic_read(&brick->mref_object_layout.total_alloc_count), maxsleep);
MARS_WRN("memleak: brick '%s' has %d mrefs allocated (total = %d, maxsleep = %d)\n",
brick->brick_path, count,
atomic_read(&brick->mref_object_layout.total_alloc_count),
maxsleep);
} else {
MARS_ERR("MEMLEAK: brick '%s' has %d mrefs allocated (total = %d)\n", brick->brick_path, count, atomic_read(&brick->mref_object_layout.total_alloc_count));
#ifdef CONFIG_MARS_DEBUG
dump_stack();
#endif
break;
}
brick_msleep(sleeptime);