summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/talloc.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-16 01:00:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:05 -0500
commit666a72e39a09d820284bedccc6c5fe712c2e6f08 (patch)
treef2b611b9602936e034c73de51acf8d6e2f519df1 /source4/lib/talloc/talloc.c
parent44146fc878b041cd33bc5383c717955f1438cb62 (diff)
downloadsamba-666a72e39a09d820284bedccc6c5fe712c2e6f08.tar.gz
samba-666a72e39a09d820284bedccc6c5fe712c2e6f08.tar.bz2
samba-666a72e39a09d820284bedccc6c5fe712c2e6f08.zip
r19304: If you really want to look at the contents undef this one
(This used to be commit fe20ac404d654abe31729664584391f3b3cd0214)
Diffstat (limited to 'source4/lib/talloc/talloc.c')
-rw-r--r--source4/lib/talloc/talloc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c
index 15b27c61ee..87b4d51ba4 100644
--- a/source4/lib/talloc/talloc.c
+++ b/source4/lib/talloc/talloc.c
@@ -886,6 +886,23 @@ static void talloc_report_depth_FILE_helper(const void *ptr, int depth, int max_
(unsigned long)talloc_total_size(ptr),
(unsigned long)talloc_total_blocks(ptr),
(int)talloc_reference_count(ptr));
+
+#if 0
+ fprintf(f, "content: ");
+ if (talloc_total_size(ptr)) {
+ int tot = talloc_total_size(ptr);
+ int i;
+
+ for (i = 0; i < tot; i++) {
+ if ((((char *)ptr)[i] > 31) && (((char *)ptr)[i] < 126)) {
+ fprintf(f, "%c", ((char *)ptr)[i]);
+ } else {
+ fprintf(f, "~%02x", ((char *)ptr)[i]);
+ }
+ }
+ }
+ fprintf(f, "\n");
+#endif
}
/*