summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-08-19 22:46:31 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-08-19 22:46:31 (GMT)
commite455040749ca1d47fb218b9bb35d78247fb9561d (patch)
tree2d26f2ae1fea1ff393f00eb36e3f2155dec690b6 /src/H5O.c
parent4322bfe90ab7de7245ff770155867fa5da78147c (diff)
downloadhdf5-e455040749ca1d47fb218b9bb35d78247fb9561d.zip
hdf5-e455040749ca1d47fb218b9bb35d78247fb9561d.tar.gz
hdf5-e455040749ca1d47fb218b9bb35d78247fb9561d.tar.bz2
[svn-r606] Debugging can be enabled/disabled at runtime though code is still
conditionally included at compile time. Tracing and debugging share the same environment variable. All is documented in Debugging.html.
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5O.c b/src/H5O.c
index ca8e402..81efca7 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -238,9 +238,9 @@ H5O_open(H5G_entry_t *obj_ent)
assert(obj_ent->file);
#ifdef H5O_DEBUG
- fprintf(stderr, ">");
- H5F_addr_print(stderr, &(obj_ent->header));
- fprintf(stderr, "\n");
+ if (H5DEBUG(O)) {
+ HDfprintf(H5DEBUG(O), "> %a\n", &(obj_ent->header));
+ }
#endif
/* Increment open-lock counters */
@@ -286,9 +286,9 @@ H5O_close(H5G_entry_t *obj_ent)
H5F_close(obj_ent->file);
}
#ifdef H5O_DEBUG
- fprintf(stderr, "<");
- H5F_addr_print(stderr, &(obj_ent->header));
- fprintf(stderr, "\n");
+ if (H5DEBUG(O)) {
+ HDfprintf(H5DEBUG(O), "< %a\n", &(obj_ent->header));
+ }
#endif
FUNC_LEAVE(SUCCEED);