summaryrefslogtreecommitdiffstats
path: root/src/H5trace.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-04-15 18:22:32 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-04-15 18:22:32 (GMT)
commit597e1d894ed72095f1d12217d3343ee2e78cbefd (patch)
tree581d98bdb4c7f62b0f13d599af4a2acca4566c02 /src/H5trace.c
parentfb651812e6132d65d1f586488ef6fe267da7348d (diff)
downloadhdf5-597e1d894ed72095f1d12217d3343ee2e78cbefd.zip
hdf5-597e1d894ed72095f1d12217d3343ee2e78cbefd.tar.gz
hdf5-597e1d894ed72095f1d12217d3343ee2e78cbefd.tar.bz2
[svn-r18566] Description:
Bring r18564 & r18565 from trunk to 1.8 branch: clean up compiler warnings and whitespace issues. Tested on: Mac OS X/32 10.6.3 (amazon) (too minor to require h5committest)
Diffstat (limited to 'src/H5trace.c')
-rw-r--r--src/H5trace.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/H5trace.c b/src/H5trace.c
index 5689d5a..5b12bc9 100644
--- a/src/H5trace.c
+++ b/src/H5trace.c
@@ -658,6 +658,49 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
break;
+ case 'm':
+ if(ptr) {
+ if(vp)
+ fprintf(out, "0x%lx", (unsigned long)vp);
+ else
+ fprintf(out, "NULL");
+ } /* end if */
+ else {
+ H5F_mem_t mem_type = va_arg(ap, H5F_mem_t); /*lint !e64 Type mismatch not really occuring */
+
+ switch(mem_type) {
+ case H5FD_MEM_NOLIST:
+ fprintf(out, "H5FD_MEM_NOLIST");
+ break;
+ case H5FD_MEM_DEFAULT:
+ fprintf(out, "H5FD_MEM_DEFAULT");
+ break;
+ case H5FD_MEM_SUPER:
+ fprintf(out, "H5FD_MEM_SUPER");
+ break;
+ case H5FD_MEM_BTREE:
+ fprintf(out, "H5FD_MEM_BTREE");
+ break;
+ case H5FD_MEM_DRAW:
+ fprintf(out, "H5FD_MEM_DRAW");
+ break;
+ case H5FD_MEM_GHEAP:
+ fprintf(out, "H5FD_MEM_GHEAP");
+ break;
+ case H5FD_MEM_LHEAP:
+ fprintf(out, "H5FD_MEM_LHEAP");
+ break;
+ case H5FD_MEM_OHDR:
+ fprintf(out, "H5FD_MEM_OHDR");
+ break;
+ case H5FD_MEM_NTYPES:
+ default:
+ fprintf(out, "%ld", (long)mem_type);
+ break;
+ } /* end switch */
+ } /* end else */
+ break;
+
case 's':
if(ptr) {
if(vp)