summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r--src/H5FDlog.c128
1 files changed, 64 insertions, 64 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index e7bde20..6dc76cb 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -608,13 +608,13 @@ H5FD__log_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
H5_timevals_t open_times; /* Elapsed time for open() call */
H5_timer_get_times(open_timer, &open_times);
- HDfprintf(file->logfp, "Open took: (%f s)\n", open_times.elapsed);
+ fprintf(file->logfp, "Open took: (%f s)\n", open_times.elapsed);
}
if (file->fa.flags & H5FD_LOG_TIME_STAT) {
H5_timevals_t stat_times; /* Elapsed time for stat() call */
H5_timer_get_times(stat_timer, &stat_times);
- HDfprintf(file->logfp, "Stat took: (%f s)\n", stat_times.elapsed);
+ fprintf(file->logfp, "Stat took: (%f s)\n", stat_times.elapsed);
}
}
@@ -704,89 +704,89 @@ H5FD__log_close(H5FD_t *_file)
H5_timevals_t close_times; /* Elapsed time for close() call */
H5_timer_get_times(close_timer, &close_times);
- HDfprintf(file->logfp, "Close took: (%f s)\n", close_times.elapsed);
+ fprintf(file->logfp, "Close took: (%f s)\n", close_times.elapsed);
}
/* Dump the total number of seek/read/write operations */
if (file->fa.flags & H5FD_LOG_NUM_READ)
- HDfprintf(file->logfp, "Total number of read operations: %llu\n", file->total_read_ops);
+ fprintf(file->logfp, "Total number of read operations: %llu\n", file->total_read_ops);
if (file->fa.flags & H5FD_LOG_NUM_WRITE)
- HDfprintf(file->logfp, "Total number of write operations: %llu\n", file->total_write_ops);
+ fprintf(file->logfp, "Total number of write operations: %llu\n", file->total_write_ops);
if (file->fa.flags & H5FD_LOG_NUM_SEEK)
- HDfprintf(file->logfp, "Total number of seek operations: %llu\n", file->total_seek_ops);
+ fprintf(file->logfp, "Total number of seek operations: %llu\n", file->total_seek_ops);
if (file->fa.flags & H5FD_LOG_NUM_TRUNCATE)
- HDfprintf(file->logfp, "Total number of truncate operations: %llu\n", file->total_truncate_ops);
+ fprintf(file->logfp, "Total number of truncate operations: %llu\n", file->total_truncate_ops);
/* Dump the total time in seek/read/write */
if (file->fa.flags & H5FD_LOG_TIME_READ)
- HDfprintf(file->logfp, "Total time in read operations: %f s\n", file->total_read_time);
+ fprintf(file->logfp, "Total time in read operations: %f s\n", file->total_read_time);
if (file->fa.flags & H5FD_LOG_TIME_WRITE)
- HDfprintf(file->logfp, "Total time in write operations: %f s\n", file->total_write_time);
+ fprintf(file->logfp, "Total time in write operations: %f s\n", file->total_write_time);
if (file->fa.flags & H5FD_LOG_TIME_SEEK)
- HDfprintf(file->logfp, "Total time in seek operations: %f s\n", file->total_seek_time);
+ fprintf(file->logfp, "Total time in seek operations: %f s\n", file->total_seek_time);
if (file->fa.flags & H5FD_LOG_TIME_TRUNCATE)
- HDfprintf(file->logfp, "Total time in truncate operations: %f s\n", file->total_truncate_time);
+ fprintf(file->logfp, "Total time in truncate operations: %f s\n", file->total_truncate_time);
/* Dump the write I/O information */
if (file->fa.flags & H5FD_LOG_FILE_WRITE) {
- HDfprintf(file->logfp, "Dumping write I/O information:\n");
+ fprintf(file->logfp, "Dumping write I/O information:\n");
last_val = file->nwrite[0];
last_addr = 0;
addr = 1;
while (addr < file->eoa) {
if (file->nwrite[addr] != last_val) {
- HDfprintf(file->logfp,
- "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) written to %3d times\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
+ fprintf(file->logfp,
+ "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) written to %3d times\n",
+ last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
last_val = file->nwrite[addr];
last_addr = addr;
}
addr++;
}
- HDfprintf(file->logfp,
- "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) written to %3d times\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
+ fprintf(file->logfp,
+ "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) written to %3d times\n",
+ last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
}
/* Dump the read I/O information */
if (file->fa.flags & H5FD_LOG_FILE_READ) {
- HDfprintf(file->logfp, "Dumping read I/O information:\n");
+ fprintf(file->logfp, "Dumping read I/O information:\n");
last_val = file->nread[0];
last_addr = 0;
addr = 1;
while (addr < file->eoa) {
if (file->nread[addr] != last_val) {
- HDfprintf(file->logfp,
- "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) read from %3d times\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
+ fprintf(file->logfp,
+ "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) read from %3d times\n",
+ last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
last_val = file->nread[addr];
last_addr = addr;
}
addr++;
}
- HDfprintf(file->logfp,
- "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) read from %3d times\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
+ fprintf(file->logfp,
+ "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) read from %3d times\n", last_addr,
+ (addr - 1), (unsigned long)(addr - last_addr), (int)last_val);
}
/* Dump the I/O flavor information */
if (file->fa.flags & H5FD_LOG_FLAVOR) {
- HDfprintf(file->logfp, "Dumping I/O flavor information:\n");
+ fprintf(file->logfp, "Dumping I/O flavor information:\n");
last_val = file->flavor[0];
last_addr = 0;
addr = 1;
while (addr < file->eoa) {
if (file->flavor[addr] != last_val) {
- HDfprintf(file->logfp,
- "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) flavor is %s\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), flavors[last_val]);
+ fprintf(file->logfp,
+ "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) flavor is %s\n",
+ last_addr, (addr - 1), (unsigned long)(addr - last_addr), flavors[last_val]);
last_val = file->flavor[addr];
last_addr = addr;
}
addr++;
}
- HDfprintf(file->logfp, "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) flavor is %s\n",
- last_addr, (addr - 1), (unsigned long)(addr - last_addr), flavors[last_val]);
+ fprintf(file->logfp, "\tAddr %10" PRIuHADDR "-%10" PRIuHADDR " (%10lu bytes) flavor is %s\n",
+ last_addr, (addr - 1), (unsigned long)(addr - last_addr), flavors[last_val]);
}
/* Free the logging information */
@@ -956,9 +956,9 @@ H5FD__log_alloc(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, hs
}
if (file->fa.flags & H5FD_LOG_ALLOC)
- HDfprintf(file->logfp,
- "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Allocated\n", addr,
- (haddr_t)((addr + size) - 1), size, flavors[type]);
+ fprintf(file->logfp,
+ "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Allocated\n", addr,
+ (haddr_t)((addr + size) - 1), size, flavors[type]);
}
/* Set return value */
@@ -996,8 +996,8 @@ H5FD__log_free(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
/* Log the file memory freed */
if (file->fa.flags & H5FD_LOG_FREE)
- HDfprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Freed\n",
- addr, (haddr_t)((addr + size) - 1), size, flavors[type]);
+ fprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Freed\n",
+ addr, (haddr_t)((addr + size) - 1), size, flavors[type]);
}
FUNC_LEAVE_NOAPI(SUCCEED)
@@ -1063,9 +1063,9 @@ H5FD__log_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t addr)
/* Log the extension like an allocation */
if (file->fa.flags & H5FD_LOG_ALLOC)
- HDfprintf(file->logfp,
- "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Allocated\n",
- file->eoa, addr, size, flavors[type]);
+ fprintf(file->logfp,
+ "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Allocated\n",
+ file->eoa, addr, size, flavors[type]);
}
/* Check for decreasing file size */
@@ -1081,9 +1081,9 @@ H5FD__log_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t addr)
/* Log the shrink like a free */
if (file->fa.flags & H5FD_LOG_FREE)
- HDfprintf(file->logfp,
- "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Freed\n",
- file->eoa, addr, size, flavors[type]);
+ fprintf(file->logfp,
+ "%10" PRIuHADDR "-%10" PRIuHADDR " (%10" PRIuHSIZE " bytes) (%s) Freed\n", file->eoa,
+ addr, size, flavors[type]);
}
}
@@ -1235,16 +1235,16 @@ H5FD__log_read(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
/* Emit log string if we're tracking individual seek events. */
if (file->fa.flags & H5FD_LOG_LOC_SEEK) {
- HDfprintf(file->logfp, "Seek: From %10" PRIuHADDR " To %10" PRIuHADDR, file->pos, addr);
+ fprintf(file->logfp, "Seek: From %10" PRIuHADDR " To %10" PRIuHADDR, file->pos, addr);
/* Add the seek time, if we're tracking that.
* Note that the seek time is NOT emitted for when just H5FD_LOG_TIME_SEEK
* is set.
*/
if (file->fa.flags & H5FD_LOG_TIME_SEEK)
- HDfprintf(file->logfp, " (%fs @ %f)\n", seek_times.elapsed, seek_timer.initial.elapsed);
+ fprintf(file->logfp, " (%fs @ %f)\n", seek_times.elapsed, seek_timer.initial.elapsed);
else
- HDfprintf(file->logfp, "\n");
+ fprintf(file->logfp, "\n");
}
}
#endif /* H5_HAVE_PREADWRITE */
@@ -1286,8 +1286,8 @@ H5FD__log_read(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
offset = HDlseek(file->fd, (HDoff_t)0, SEEK_CUR);
if (file->fa.flags & H5FD_LOG_LOC_READ)
- HDfprintf(file->logfp, "Error! Reading: %10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes)\n",
- orig_addr, (orig_addr + orig_size) - 1, orig_size);
+ fprintf(file->logfp, "Error! Reading: %10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes)\n",
+ orig_addr, (orig_addr + orig_size) - 1, orig_size);
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL,
"file read failed: time = %s, filename = '%s', file descriptor = %d, errno = %d, "
@@ -1328,8 +1328,8 @@ H5FD__log_read(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
/* Log information about the read */
if (file->fa.flags & H5FD_LOG_LOC_READ) {
- HDfprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes) (%s) Read", orig_addr,
- (orig_addr + orig_size) - 1, orig_size, flavors[type]);
+ fprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes) (%s) Read", orig_addr,
+ (orig_addr + orig_size) - 1, orig_size, flavors[type]);
/* Verify that we are reading in the type of data we allocated in this location */
if (file->flavor) {
@@ -1345,9 +1345,9 @@ H5FD__log_read(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
* is set.
*/
if (file->fa.flags & H5FD_LOG_TIME_READ)
- HDfprintf(file->logfp, " (%fs @ %f)\n", read_times.elapsed, read_timer.initial.elapsed);
+ fprintf(file->logfp, " (%fs @ %f)\n", read_times.elapsed, read_timer.initial.elapsed);
else
- HDfprintf(file->logfp, "\n");
+ fprintf(file->logfp, "\n");
}
/* Update current position */
@@ -1457,16 +1457,16 @@ H5FD__log_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, ha
/* Emit log string if we're tracking individual seek events. */
if (file->fa.flags & H5FD_LOG_LOC_SEEK) {
- HDfprintf(file->logfp, "Seek: From %10" PRIuHADDR " To %10" PRIuHADDR, file->pos, addr);
+ fprintf(file->logfp, "Seek: From %10" PRIuHADDR " To %10" PRIuHADDR, file->pos, addr);
/* Add the seek time, if we're tracking that.
* Note that the seek time is NOT emitted for when just H5FD_LOG_TIME_SEEK
* is set.
*/
if (file->fa.flags & H5FD_LOG_TIME_SEEK)
- HDfprintf(file->logfp, " (%fs @ %f)\n", seek_times.elapsed, seek_timer.initial.elapsed);
+ fprintf(file->logfp, " (%fs @ %f)\n", seek_times.elapsed, seek_timer.initial.elapsed);
else
- HDfprintf(file->logfp, "\n");
+ fprintf(file->logfp, "\n");
}
}
#endif /* H5_HAVE_PREADWRITE */
@@ -1508,8 +1508,8 @@ H5FD__log_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, ha
offset = HDlseek(file->fd, (HDoff_t)0, SEEK_CUR);
if (file->fa.flags & H5FD_LOG_LOC_WRITE)
- HDfprintf(file->logfp, "Error! Writing: %10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes)\n",
- orig_addr, (orig_addr + orig_size) - 1, orig_size);
+ fprintf(file->logfp, "Error! Writing: %10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes)\n",
+ orig_addr, (orig_addr + orig_size) - 1, orig_size);
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL,
"file write failed: time = %s, filename = '%s', file descriptor = %d, errno = %d, "
@@ -1544,15 +1544,15 @@ H5FD__log_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, ha
/* Log information about the write */
if (file->fa.flags & H5FD_LOG_LOC_WRITE) {
- HDfprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes) (%s) Written", orig_addr,
- (orig_addr + orig_size) - 1, orig_size, flavors[type]);
+ fprintf(file->logfp, "%10" PRIuHADDR "-%10" PRIuHADDR " (%10zu bytes) (%s) Written", orig_addr,
+ (orig_addr + orig_size) - 1, orig_size, flavors[type]);
/* Check if this is the first write into a "default" section, grabbed by the metadata aggregation
* algorithm */
if (file->fa.flags & H5FD_LOG_FLAVOR) {
if ((H5FD_mem_t)file->flavor[orig_addr] == H5FD_MEM_DEFAULT) {
HDmemset(&file->flavor[orig_addr], (int)type, orig_size);
- HDfprintf(file->logfp, " (fresh)");
+ fprintf(file->logfp, " (fresh)");
}
}
@@ -1561,9 +1561,9 @@ H5FD__log_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, ha
* is set.
*/
if (file->fa.flags & H5FD_LOG_TIME_WRITE)
- HDfprintf(file->logfp, " (%fs @ %f)\n", write_times.elapsed, write_timer.initial.elapsed);
+ fprintf(file->logfp, " (%fs @ %f)\n", write_times.elapsed, write_timer.initial.elapsed);
else
- HDfprintf(file->logfp, "\n");
+ fprintf(file->logfp, "\n");
}
/* Update current position and eof */
@@ -1666,16 +1666,16 @@ H5FD__log_truncate(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, hbool_t H5_ATTR_
/* Emit log string if we're tracking individual truncate events. */
if (file->fa.flags & H5FD_LOG_TRUNCATE) {
- HDfprintf(file->logfp, "Truncate: To %10" PRIuHADDR, file->eoa);
+ fprintf(file->logfp, "Truncate: To %10" PRIuHADDR, file->eoa);
/* Add the truncate time, if we're tracking that.
* Note that the truncate time is NOT emitted for when just H5FD_LOG_TIME_TRUNCATE
* is set.
*/
if (file->fa.flags & H5FD_LOG_TIME_TRUNCATE)
- HDfprintf(file->logfp, " (%fs @ %f)\n", trunc_times.elapsed, trunc_timer.initial.elapsed);
+ fprintf(file->logfp, " (%fs @ %f)\n", trunc_times.elapsed, trunc_timer.initial.elapsed);
else
- HDfprintf(file->logfp, "\n");
+ fprintf(file->logfp, "\n");
}
/* Update the eof value */