summaryrefslogtreecommitdiffstats
path: root/test/use_append_mchunks.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 15:31:32 (GMT)
committerGitHub <noreply@github.com>2023-06-28 15:31:32 (GMT)
commit187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch)
treebaffa167d0796786241aef6b0ce76d4adec3b66e /test/use_append_mchunks.c
parent7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff)
downloadhdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'test/use_append_mchunks.c')
-rw-r--r--test/use_append_mchunks.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/use_append_mchunks.c b/test/use_append_mchunks.c
index ff9625e..ed56ca3 100644
--- a/test/use_append_mchunks.c
+++ b/test/use_append_mchunks.c
@@ -135,25 +135,25 @@ main(int argc, char *argv[])
/* Create file */
/* =========== */
if (UC_opts.launch != UC_READER) {
- HDprintf("Creating skeleton data file for test...\n");
+ printf("Creating skeleton data file for test...\n");
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create creation FAPL\n");
+ fprintf(stderr, "can't create creation FAPL\n");
Hgoto_error(1);
}
if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set creation FAPL libver bounds\n");
+ fprintf(stderr, "can't set creation FAPL libver bounds\n");
Hgoto_error(1);
}
if (create_uc_file(&UC_opts) < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
}
else {
- HDprintf("File created.\n");
+ printf("File created.\n");
}
/* Close FAPL to prevent issues with forking later */
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close creation FAPL\n");
+ fprintf(stderr, "can't close creation FAPL\n");
Hgoto_error(1);
}
UC_opts.fapl_id = H5I_INVALID_HID;
@@ -176,17 +176,17 @@ main(int argc, char *argv[])
if (UC_opts.launch != UC_WRITER) {
/* child process launch the reader */
if (0 == childpid) {
- HDprintf("%d: launch reader process\n", mypid);
+ printf("%d: launch reader process\n", mypid);
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create read FAPL\n");
+ fprintf(stderr, "can't create read FAPL\n");
HDexit(EXIT_FAILURE);
}
if (read_uc_file(send_wait, &UC_opts) < 0) {
- HDfprintf(stderr, "read_uc_file encountered error\n");
+ fprintf(stderr, "read_uc_file encountered error\n");
HDexit(EXIT_FAILURE);
}
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close read FAPL\n");
+ fprintf(stderr, "can't close read FAPL\n");
HDexit(EXIT_FAILURE);
}
HDexit(EXIT_SUCCESS);
@@ -197,39 +197,39 @@ main(int argc, char *argv[])
/* launch writer */
/* ============= */
/* this process continues to launch the writer */
- HDprintf("%d: continue as the writer process\n", mypid);
+ printf("%d: continue as the writer process\n", mypid);
/* Set the file access property list */
if ((fapl = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't get write FAPL\n");
+ fprintf(stderr, "can't get write FAPL\n");
Hgoto_error(1);
}
if (UC_opts.use_swmr) {
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set write FAPL libver bounds\n");
+ fprintf(stderr, "can't set write FAPL libver bounds\n");
Hgoto_error(1);
}
}
if ((fid = H5Fopen(UC_opts.filename, H5F_ACC_RDWR | (UC_opts.use_swmr ? H5F_ACC_SWMR_WRITE : 0), fapl)) <
0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
Hgoto_error(1);
}
if (write_uc_file(send_wait, fid, &UC_opts) < 0) {
- HDfprintf(stderr, "write_uc_file encountered error\n");
+ fprintf(stderr, "write_uc_file encountered error\n");
Hgoto_error(1);
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Failed to close file id\n");
+ fprintf(stderr, "Failed to close file id\n");
Hgoto_error(1);
}
if (H5Pclose(fapl) < 0) {
- HDfprintf(stderr, "can't close write FAPL\n");
+ fprintf(stderr, "can't close write FAPL\n");
Hgoto_error(1);
}
@@ -244,22 +244,22 @@ main(int argc, char *argv[])
if (WIFEXITED(child_status)) {
if ((child_ret_value = WEXITSTATUS(child_status)) != 0) {
- HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
+ printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
Hgoto_error(1);
}
}
else {
- HDprintf("%d: child process terminated abnormally\n", mypid);
+ printf("%d: child process terminated abnormally\n", mypid);
Hgoto_error(2);
}
}
done:
if (ret_value != 0) {
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
}
else {
- HDprintf("All passed\n");
+ printf("All passed\n");
}
return (ret_value);
@@ -270,7 +270,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */