diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-04-05 14:49:50 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-04-05 14:49:50 (GMT) |
commit | 939da8a35e7a900d57fbbc3ce722ab941cf6d463 (patch) | |
tree | 15fb6949820230b91d90fceb08165016ee7f03ef /src | |
parent | 5d46ad9b3984dcddffaf369a92a8ef95339f8547 (diff) | |
download | hdf5-939da8a35e7a900d57fbbc3ce722ab941cf6d463.zip hdf5-939da8a35e7a900d57fbbc3ce722ab941cf6d463.tar.gz hdf5-939da8a35e7a900d57fbbc3ce722ab941cf6d463.tar.bz2 |
[svn-r29638] Added new chunk index types to trace code.
Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1
autotools serial
Diffstat (limited to 'src')
-rw-r--r-- | src/H5trace.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/H5trace.c b/src/H5trace.c index 2fd75ac..296e2a1 100644 --- a/src/H5trace.c +++ b/src/H5trace.c @@ -495,6 +495,40 @@ H5_trace(const double *returning, const char *func, const char *type, ...) } /* end else */ break; + case 'k': + if(ptr) { + if(vp) + fprintf(out, "0x%lx", (unsigned long)vp); + else + fprintf(out, "NULL"); + } /* end if */ + else { + H5D_chunk_index_t idx = (H5D_chunk_index_t)va_arg(ap, int); + + switch(idx) { + case H5D_CHUNK_IDX_BTREE: + fprintf(out, "H5D_CHUNK_IDX_BTREE"); + break; + + case H5D_CHUNK_IDX_EARRAY: + fprintf(out, "H5D_CHUNK_IDX_EARRAY"); + break; + + case H5D_CHUNK_IDX_BT2: + fprintf(out, "H5D_CHUNK_IDX_BT2"); + break; + + case H5D_CHUNK_IDX_NTYPES: + fprintf(out, "ERROR: H5D_CHUNK_IDX_NTYPES (invalid value)"); + break; + + default: + fprintf(out, "UNKNOWN VALUE: %ld", (long)idx); + break; + } /* end switch */ + } /* end else */ + break; + case 'l': if(ptr) { if(vp) |