summaryrefslogtreecommitdiffstats
path: root/src/H5trace.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-11-29 04:21:45 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-11-29 04:21:45 (GMT)
commitf3ad03a538809f14ef6f6380409ee4a340b47c97 (patch)
treeefa1e551cd068aedc5791896f74de0aca24181b3 /src/H5trace.c
parentd442fe2d9815a83f5010cca9a878974e286c27f9 (diff)
downloadhdf5-f3ad03a538809f14ef6f6380409ee4a340b47c97.zip
hdf5-f3ad03a538809f14ef6f6380409ee4a340b47c97.tar.gz
hdf5-f3ad03a538809f14ef6f6380409ee4a340b47c97.tar.bz2
Switch H5VL_class_value_t from enum to unsigned integer
Diffstat (limited to 'src/H5trace.c')
-rw-r--r--src/H5trace.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/H5trace.c b/src/H5trace.c
index 47c1c69..d5aad06 100644
--- a/src/H5trace.c
+++ b/src/H5trace.c
@@ -2580,19 +2580,12 @@ H5_trace(const double *returning, const char *func, const char *type, ...)
HDfprintf(out, "NULL");
} /* end if */
else {
- H5VL_class_value_t class_val = (H5VL_class_value_t)va_arg(ap, int);
+ H5VL_class_value_t class_val = (H5VL_class_value_t)va_arg(ap, H5VL_class_value_t);
- switch(class_val) {
- case H5_VOL_NATIVE:
- HDfprintf(out, "H5_VOL_NATIVE");
- break;
- case H5_VOL_MAX_LIB_VALUE:
- HDfprintf(out, "H5_VOL_MAX_LIB_VALUE");
- break;
- default:
- HDfprintf(out, "%ld", (long)class_val);
- break;
- } /* end switch */
+ if(H5_VOL_NATIVE == class_val)
+ HDfprintf(out, "H5_VOL_NATIVE");
+ else
+ HDfprintf(out, "%ld", (long)class_val);
} /* end else */
break;
case 'c':