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 /src/H5.c | |
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 'src/H5.c')
-rw-r--r-- | src/H5.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -391,8 +391,9 @@ H5_debug_mask(const char *s) } else if (isdigit(*s)) { int fd = (int)HDstrtol (s, &rest, 0); - stream = HDfdopen (fd, "w"); - setvbuf (stream, NULL, _IOLBF, 0); + if ((stream=HDfdopen(fd, "w"))) { + setvbuf (stream, NULL, _IOLBF, 0); + } s = rest; } else { s++; @@ -2124,7 +2125,11 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...) } } else { vp = va_arg (ap, void*); - fprintf (out, "0x%lx", (unsigned long)vp); + if (vp) { + fprintf (out, "0x%lx", (unsigned long)vp); + } else { + fprintf(out, "NULL"); + } } break; |