summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/H5.c b/src/H5.c
index f0de26e..8e35cc9 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -1938,33 +1938,14 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
case 'r':
if (ptr) {
- if (vp) {
- fprintf (out, "0x%lx", (unsigned long)vp);
- } else {
- fprintf(out, "NULL");
- }
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
} else {
- href_t ref = va_arg (ap, href_t);
- switch (ref.type) {
- case H5R_BADTYPE:
- fprintf (out, "H5R_BADTYPE");
- break;
- case H5R_OBJECT:
- fprintf (out, "H5R_OBJECT");
- break;
- case H5R_DATASET_REGION:
- fprintf (out, "H5R_DATASET_REGION");
- break;
- case H5R_INTERNAL:
- fprintf (out, "H5R_INTERNAL");
- break;
- case H5R_MAXTYPE:
- fprintf (out, "H5R_MAXTYPE");
- break;
- default:
- fprintf (out, "BADTYPE(%ld)", (long)ref.type);
- break;
- }
+ href_t ref = va_arg (ap, href_t);
+ fprintf (out, "Reference Object=%p", &ref);
}
break;