summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-11-18 15:55:22 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-11-18 15:55:22 (GMT)
commit4f8ca8e026fbff3eafaf514bb0be8a4126593268 (patch)
tree63f46898d4de94232f09e4c1b1bad77b99508c90 /src/H5.c
parent75ea10e5f50c3c23fd73f073adb84b0baf551edc (diff)
downloadhdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.zip
hdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.tar.gz
hdf5-4f8ca8e026fbff3eafaf514bb0be8a4126593268.tar.bz2
[svn-r11738] Purpose:
Configure feature Description: Added 'make trace' target. Solution: Added tracing to 1.7. This was done automatically in 1.6, but left out of 1.7 until now (oops!). Tracing in 1.7 only happens manually, when the user types 'make trace.' Tracing automatically requires more framework than it's worth. I also fixed a couple of tracing bugs and ran trace. Platforms tested: mir, sleipnir, modi4 Misc. update:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index 86322a2..00bcc38 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -2984,6 +2984,31 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
case 'Z':
switch (type[1]) {
+ case 'a':
+ if (ptr) {
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ H5Z_SO_scale_type_t scale_type = va_arg (ap, H5Z_SO_scale_type_t); /*lint !e64 Type mismatch not really occuring */
+ switch(scale_type) {
+ case H5Z_SO_FLOAT_DSCALE:
+ fprintf(out, "H5Z_SO_FLOAT_DSCALE");
+ break;
+ case H5Z_SO_FLOAT_ESCALE:
+ fprintf(out, "H5Z_SO_FLOAT_ESCALE");
+ break;
+ case H5Z_SO_INT:
+ fprintf(out, "H5Z_SO_INT");
+ break;
+ default:
+ fprintf(out, "%ld", (long)scale_type);
+ break;
+ }
+ }
+ break;
case 'c':
if (ptr) {
if (vp) {