summaryrefslogtreecommitdiffstats
path: root/src/H5Dchunk.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-01-11 01:51:42 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-01-11 01:51:42 (GMT)
commit536a32c59be69f9ae75604a31d0ec34c57cf9f00 (patch)
tree605e0c0272cce05f9b8b8ed1799c384c9894ed0e /src/H5Dchunk.c
parenta7e0ef996a63b87cc0295b58f37f037c848a6929 (diff)
downloadhdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.zip
hdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.tar.gz
hdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.tar.bz2
C and POSIX call cleanup
Diffstat (limited to 'src/H5Dchunk.c')
-rw-r--r--src/H5Dchunk.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c
index b5a5c39..debdbde 100644
--- a/src/H5Dchunk.c
+++ b/src/H5Dchunk.c
@@ -6303,15 +6303,16 @@ H5D__chunk_stats(const H5D_t *dset, hbool_t headers)
HGOTO_DONE(SUCCEED)
if (headers) {
- fprintf(H5DEBUG(AC), "H5D: raw data cache statistics\n");
- fprintf(H5DEBUG(AC), " %-18s %8s %8s %8s %8s+%-8s\n",
+ HDfprintf(H5DEBUG(AC), "H5D: raw data cache statistics\n");
+ HDfprintf(H5DEBUG(AC), " %-18s %8s %8s %8s %8s+%-8s\n",
"Layer", "Hits", "Misses", "MissRate", "Inits", "Flushes");
- fprintf(H5DEBUG(AC), " %-18s %8s %8s %8s %8s-%-8s\n",
+ HDfprintf(H5DEBUG(AC), " %-18s %8s %8s %8s %8s-%-8s\n",
"-----", "----", "------", "--------", "-----", "-------");
}
#ifdef H5AC_DEBUG
- if (H5DEBUG(AC)) headers = TRUE;
+ if (H5DEBUG(AC))
+ headers = TRUE;
#endif
if (headers) {
@@ -6322,12 +6323,12 @@ H5D__chunk_stats(const H5D_t *dset, hbool_t headers)
miss_rate = 0.0;
}
if (miss_rate > 100) {
- sprintf(ascii, "%7d%%", (int) (miss_rate + 0.5));
+ HDsprintf(ascii, "%7d%%", (int) (miss_rate + 0.5));
} else {
- sprintf(ascii, "%7.2f%%", miss_rate);
+ HDsprintf(ascii, "%7.2f%%", miss_rate);
}
- fprintf(H5DEBUG(AC), " %-18s %8u %8u %7s %8d+%-9ld\n",
+ HDfprintf(H5DEBUG(AC), " %-18s %8u %8u %7s %8d+%-9ld\n",
"raw data chunks", rdcc->stats.nhits, rdcc->stats.nmisses, ascii,
rdcc->stats.ninits, (long)(rdcc->stats.nflushes)-(long)(rdcc->stats.ninits));
}