summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-30 16:38:21 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-30 16:38:21 (GMT)
commitc7b935a9acd629929296c1ccdd05214cc5c01e5d (patch)
tree07d051649f88b4d65f98316182e6191b038fc4c7 /src/H5AC.c
parenta34534c9b8321f4de9fadd836be926497f7461d4 (diff)
downloadhdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.zip
hdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.tar.gz
hdf5-c7b935a9acd629929296c1ccdd05214cc5c01e5d.tar.bz2
[svn-r547] Changes since 19980729
---------------------- ./MANIFEST ./test/Makefile.in ./test/mtime.c [NEW] Test for the modification time message. ./src/H5AC.c ./src/H5Fistore.c Turned off printing of statistics on H5close() if H5AC_DEBUG isn't defined.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index c34d7c2..b932f53 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -845,15 +845,18 @@ H5AC_unprotect(H5F_t *f, const H5AC_class_t *type, const haddr_t *addr,
*-------------------------------------------------------------------------
*/
herr_t
-H5AC_debug(H5F_t *f)
+H5AC_debug(H5F_t __unused__ *f)
{
+#ifdef H5AC_DEBUG
H5AC_subid_t i;
char s[32], ascii[32];
H5AC_t *cache = f->shared->cache;
double miss_rate;
+#endif
FUNC_ENTER(H5AC_debug, FAIL);
+#ifdef H5AC_DEBUG
fprintf(stderr, "H5AC: meta data cache statistics for file %s\n", f->name);
fprintf(stderr, " %-18s %8s %8s %8s %8s+%-8s\n",
"Layer", "Hits", "Misses", "MissRate", "Inits", "Flushes");
@@ -904,6 +907,7 @@ H5AC_debug(H5F_t *f)
((long)(cache->diagnostics[i].nflushes) -
(long)(cache->diagnostics[i].ninits)));
}
+#endif
FUNC_LEAVE(SUCCEED);
}