diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-08-19 22:46:31 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-08-19 22:46:31 (GMT) |
commit | e455040749ca1d47fb218b9bb35d78247fb9561d (patch) | |
tree | 2d26f2ae1fea1ff393f00eb36e3f2155dec690b6 /src/H5Ffamily.c | |
parent | 4322bfe90ab7de7245ff770155867fa5da78147c (diff) | |
download | hdf5-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/H5Ffamily.c')
-rw-r--r-- | src/H5Ffamily.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/H5Ffamily.c b/src/H5Ffamily.c index fd876c0..464ffa1 100644 --- a/src/H5Ffamily.c +++ b/src/H5Ffamily.c @@ -177,9 +177,11 @@ H5F_fam_open(const char *name, const H5F_access_t *access_parms, * the same as the actual member size, but at least 1kB */ #ifdef H5F_DEBUG - HDfprintf (stderr, "H5F: family member size has been increased " - "from %a to %a\n", &(access_parms->u.fam.memb_size), - &tmp_addr); + if (H5DEBUG(F)) { + HDfprintf (H5DEBUG(F), "H5F: family member size has been " + "increased from %a to %a\n", + &(access_parms->u.fam.memb_size), &tmp_addr); + } #endif if (tmp_addr.offset<1024) tmp_addr.offset = 1024; lf->u.fam.memb_size = tmp_addr; @@ -198,8 +200,11 @@ H5F_fam_open(const char *name, const H5F_access_t *access_parms, * member as the member size. */ #ifdef H5F_DEBUG - HDfprintf (stderr, "H5F: family member size adjusted from %a to %a\n", - &(access_parms->u.fam.memb_size), &tmp_addr); + if (H5DEBUG(F)) { + HDfprintf (H5DEBUG(F), "H5F: family member size adjusted from " + "%a to %a\n", &(access_parms->u.fam.memb_size), + &tmp_addr); + } #endif lf->u.fam.memb_size = tmp_addr; for (membno=1; membno<lf->u.fam.nmemb; membno++) { @@ -221,9 +226,10 @@ H5F_fam_open(const char *name, const H5F_access_t *access_parms, * member size but on a 32-bit machine this isn't possible. The largest * file on a 32-bit machine is 2^32-1. */ - if (lf->u.fam.memb_size.offset == ((size_t)1<<(sizeof(off_t)-1))) { - HDfprintf (stderr, "H5F: family member size may be too large: %a\n", - &(lf->u.fam.memb_size)); + if (H5DEBUG(F) && + lf->u.fam.memb_size.offset == ((size_t)1<<(sizeof(off_t)-1))) { + HDfprintf(H5DEBUG(F), "H5F: family member size may be too large: %a\n", + &(lf->u.fam.memb_size)); } #endif |