git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34b9c7c
)
Cope nicely with pools with no name.
author
Martin Pool
<mbp@samba.org>
Thu, 3 Jan 2002 05:52:27 +0000
(
05:52
+0000)
committer
Martin Pool
<mbp@samba.org>
Thu, 3 Jan 2002 05:52:27 +0000
(
05:52
+0000)
(This used to be commit
86abefc17260387b6b68c71ad5587ef0212162c0
)
source3/lib/talloc.c
patch
|
blob
|
history
diff --git
a/source3/lib/talloc.c
b/source3/lib/talloc.c
index 01a6e19bb23f3a4e76a82d9baa28298f22e335f0..bd9080dc34230ed30b389629fbac66417ac54030 100644
(file)
--- a/
source3/lib/talloc.c
+++ b/
source3/lib/talloc.c
@@
-371,10
+371,19
@@
char *talloc_describe_all(TALLOC_CTX *rt)
for (it = list_head; it; it = it->next_ctx) {
size_t bytes;
int n_chunks;
+ fstring what;
+
n_pools++;
+
talloc_get_allocation(it, &bytes, &n_chunks);
+
+ if (it->name)
+ fstrcpy(what, it->name);
+ else
+ slprintf(what, sizeof what, "@%p", it);
+
s = talloc_asprintf_append(rt, s, "%-40s %8u %8u\n",
-
it->name
,
+
what
,
(unsigned) n_chunks,
(unsigned) bytes);
total_bytes += bytes;