summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-09 18:40:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-09 18:40:19 (GMT)
commit98f01e2df2b407bfae2cd24fe4f03e184712eb75 (patch)
treef1981909055143f84c94799354d3d2a266c30c0f /src/H5.c
parent9a433b99a56dc575f1c0b11f95b744de61859dbb (diff)
downloadhdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.zip
hdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.tar.gz
hdf5-98f01e2df2b407bfae2cd24fe4f03e184712eb75.tar.bz2
[svn-r6255] Purpose:
Code cleanup Description: Clean up a few more warnings and update dependencies. Platforms tested: Linux 2.2.18smp (eirene) serial & parallel
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c104
1 files changed, 104 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index 742cd77..8a3e558 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -1573,6 +1573,84 @@ H5_trace (double *returning, const char *func, const char *type, ...)
case 'D':
switch (type[1]) {
+ case 'a':
+ if (ptr) {
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ H5D_alloc_time_t alloc_time = va_arg (ap, H5D_alloc_time_t);
+ switch (alloc_time) {
+ case H5D_ALLOC_TIME_ERROR:
+ fprintf (out, "H5D_ALLOC_TIME_ERROR");
+ break;
+ case H5D_ALLOC_TIME_DEFAULT:
+ fprintf (out, "H5D_ALLOC_TIME_DEFAULT");
+ break;
+ case H5D_ALLOC_TIME_EARLY:
+ fprintf (out, "H5D_ALLOC_TIME_EARLY");
+ break;
+ case H5D_ALLOC_TIME_LATE:
+ fprintf (out, "H5D_ALLOC_TIME_LATE");
+ break;
+ case H5D_ALLOC_TIME_INCR:
+ fprintf (out, "H5D_ALLOC_TIME_INCR");
+ break;
+ }
+ }
+ break;
+
+ case 'f':
+ if (ptr) {
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ H5D_fill_time_t fill_time = va_arg (ap, H5D_fill_time_t);
+ switch (fill_time) {
+ case H5D_FILL_TIME_ERROR:
+ fprintf (out, "H5D_FILL_TIME_ERROR");
+ break;
+ case H5D_FILL_TIME_ALLOC:
+ fprintf (out, "H5D_FILL_TIME_ALLOC");
+ break;
+ case H5D_FILL_TIME_NEVER:
+ fprintf (out, "H5D_FILL_TIME_NEVER");
+ break;
+ }
+ }
+ break;
+
+ case 'F':
+ if (ptr) {
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ H5D_fill_value_t fill_value = va_arg (ap, H5D_fill_value_t);
+ switch (fill_value) {
+ case H5D_FILL_VALUE_ERROR:
+ fprintf (out, "H5D_FILL_VALUE_ERROR");
+ break;
+ case H5D_FILL_VALUE_UNDEFINED:
+ fprintf (out, "H5D_FILL_VALUE_UNDEFINED");
+ break;
+ case H5D_FILL_VALUE_DEFAULT:
+ fprintf (out, "H5D_FILL_VALUE_DEFAULT");
+ break;
+ case H5D_FILL_VALUE_USER_DEFINED:
+ fprintf (out, "H5D_FILL_VALUE_USER_DEFINED");
+ break;
+ }
+ }
+ break;
+
case 'l':
if (ptr) {
if (vp) {
@@ -1718,6 +1796,32 @@ H5_trace (double *returning, const char *func, const char *type, ...)
case 'F':
switch (type[1]) {
+ case 'd':
+ if (ptr) {
+ if (vp) {
+ fprintf(out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ H5F_close_degree_t degree = va_arg(ap, H5F_close_degree_t);
+ switch (degree) {
+ case H5F_CLOSE_DEFAULT:
+ fprintf(out, "H5F_CLOSE_DEFAULT");
+ break;
+ case H5F_CLOSE_WEAK:
+ fprintf(out, "H5F_CLOSE_WEAK");
+ break;
+ case H5F_CLOSE_SEMI:
+ fprintf(out, "H5F_CLOSE_SEMI");
+ break;
+ case H5F_CLOSE_STRONG:
+ fprintf(out, "H5F_CLOSE_STRONG");
+ break;
+ }
+ }
+ break;
+
case 's':
if (ptr) {
if (vp) {