mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib: Add the pointer itself to talloc_report_str
A ctdb test found this discrepancy to talloc_report_full :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
This commit is contained in:
parent
2fbce8ad0a
commit
a44a7c7598
@ -146,11 +146,11 @@ static void talloc_report_str_helper(const void *ptr, int depth, int max_depth,
|
||||
|
||||
state->s = talloc_asprintf_append_largebuf(
|
||||
state->s, &state->str_len,
|
||||
"%*s%-30s contains %6lu bytes in %3lu blocks (ref %d)\n",
|
||||
"%*s%-30s contains %6lu bytes in %3lu blocks (ref %d) %p\n",
|
||||
depth*4, "", name,
|
||||
(unsigned long)talloc_total_size(ptr),
|
||||
(unsigned long)talloc_total_blocks(ptr),
|
||||
talloc_reference_count(ptr));
|
||||
talloc_reference_count(ptr), ptr);
|
||||
}
|
||||
|
||||
char *talloc_report_str(TALLOC_CTX *mem_ctx, TALLOC_CTX *root)
|
||||
|
Loading…
Reference in New Issue
Block a user