diff options
author | Simo Sorce <idra@samba.org> | 2006-10-16 01:00:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:05 -0500 |
commit | 666a72e39a09d820284bedccc6c5fe712c2e6f08 (patch) | |
tree | f2b611b9602936e034c73de51acf8d6e2f519df1 /source4/lib/talloc/talloc.c | |
parent | 44146fc878b041cd33bc5383c717955f1438cb62 (diff) | |
download | samba-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.c | 17 |
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 } /* |