summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
commit5122df335cc2627bfdd85e3fcff8bd1731e8c4ae (patch)
treeb2f22fe06fb4fde61e7113b9aee17597a9fedd20 /src/H5.c
parentec59e5f52aa06ed8267f8df2281f322fb6b9ed78 (diff)
downloadhdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.zip
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.gz
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.bz2
[svn-r4584]
Purpose: Switch from old property list to new generic property list. Description: Mainly changed H5Pcreat, H5Pclose, H5Pcopy. Platforms tested: IRIX64 6.5, FreeBSD, SunOS 5.7.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/H5.c b/src/H5.c
index f8cf191..38e4c91 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -2114,18 +2114,17 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
fprintf(out, "NULL");
}
} else {
- /* Before deleting the last of these old-style lists, convert */
- /* this chunk of code to print the class of the property list */
- /* using the generic property list classes - QAK */
- H5P_class_t_old plist_class = va_arg (ap, H5P_class_t_old);
- switch (plist_class) {
- case H5P_NO_CLASS_OLD:
- fprintf (out, "H5P_NO_CLASS");
- break;
- default:
- fprintf (out, "%ld", (long)plist_class);
- break;
- }
+ hid_t pclass_id = va_arg (ap, hid_t);
+ char *class_name=NULL;
+
+ /* Get the class name and print it */
+ if((class_name=H5Pget_class_name(pclass_id))!=NULL) {
+ fprintf (out, class_name);
+ H5MM_xfree(class_name);
+ } /* end if */
+ else {
+ fprintf (out, "%ld", (long)pclass_id);
+ } /* end else */
}
break;