diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-08-20 22:57:35 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-08-20 22:57:35 (GMT) |
commit | 49133159c8bb1da1edf9e89971a842e50b545314 (patch) | |
tree | b1fccecc5be463797bd9bbbb9a7a31b3afcda44a /tools | |
parent | 2c61dcc3ee50581ca29191f3d7ea891fcca3c4a2 (diff) | |
download | hdf5-49133159c8bb1da1edf9e89971a842e50b545314.zip hdf5-49133159c8bb1da1edf9e89971a842e50b545314.tar.gz hdf5-49133159c8bb1da1edf9e89971a842e50b545314.tar.bz2 |
[svn-r609] Debugging.html
Fixed errors
H5.c
Fixed core dump with setvbuf() for debugging.
H5Fistore.c
Fixed bug with sparse datasets.
H5Omtime.c
Found a typo in "Posix Programmer's Guide". The `%z' in the
strftime() should be `%Z' instead.
H5T.c
H5Tpublic.h
Improved api tracing for H5Tinsert_array().
h5tools.c
Doesn't dump core for empty datasets.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5tools.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c index 0472074..bfb46a3 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -22,7 +22,11 @@ * size of that temporary buffer in bytes. For efficiency's sake, choose the * largest value suitable for your machine (for testing use a small value). */ +#if 0 #define H5DUMP_BUFSIZE (1024*1024) +#else +#define H5DUMP_BUFSIZE (1024) +#endif #define OPT(X,S) ((X)?(X):(S)) #define MIN(X,Y) ((X)<(Y)?(X):(Y)) @@ -258,6 +262,7 @@ h5dump_simple(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_type) for (i=0, p_nelmts=1; i<(hsize_t)ndims; i++) { p_nelmts *= p_max_idx[i]-p_min_idx[i]; } + if (0==p_nelmts) return 0; /*nothing to print*/ /* * Determine the strip mine size and allocate a buffer. The strip mine is |