summaryrefslogtreecommitdiffstats
path: root/test/istore.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/istore.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/istore.c')
-rw-r--r--test/istore.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/test/istore.c b/test/istore.c
index 98ef839..0b651fa 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -103,22 +103,22 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i = 0; i < nx; i++) {
if (nz > 1) {
- HDfprintf(stderr, "i=%lu:\n", (unsigned long)i);
+ fprintf(stderr, "i=%lu:\n", (unsigned long)i);
}
else {
- HDfprintf(stderr, "%03lu:", (unsigned long)i);
+ fprintf(stderr, "%03lu:", (unsigned long)i);
}
for (j = 0; j < ny; j++) {
if (nz > 1)
- HDfprintf(stderr, "%03lu:", (unsigned long)j);
+ fprintf(stderr, "%03lu:", (unsigned long)j);
for (k = 0; k < nz; k++) {
- HDfprintf(stderr, " %3d", *array++);
+ fprintf(stderr, " %3d", *array++);
}
if (nz > 1)
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "\n");
}
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "\n");
}
}
@@ -287,7 +287,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
/* Build the new empty object */
HDsnprintf(name, sizeof(name), "%s_%s", prefix, dims);
if ((dataset = new_object(f, name, ndims, whole_size, whole_size)) < 0) {
- HDfprintf(stderr, " Cannot create %u-d object `%s'\n", ndims, name);
+ fprintf(stderr, " Cannot create %u-d object `%s'\n", ndims, name);
goto error;
}
@@ -333,7 +333,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
/* Write to disk */
if (H5Dwrite(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Write failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Write failed: ctr=%lu\n", (unsigned long)ctr);
goto error;
}
@@ -341,15 +341,15 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
HDmemset(check, 0xff, (size_t)nelmts);
if (H5Dread(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, check) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Read failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Read failed: ctr=%lu\n", (unsigned long)ctr);
goto error;
}
if (HDmemcmp(buf, check, (size_t)nelmts) != 0) {
H5_FAILED();
- HDfprintf(stderr, " Read check failed: ctr=%lu\n", (unsigned long)ctr);
- HDfprintf(stderr, " Wrote:\n");
+ fprintf(stderr, " Read check failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Wrote:\n");
print_array(buf, (size_t)size[0], (size_t)size[1], (size_t)size[2]);
- HDfprintf(stderr, " Read:\n");
+ fprintf(stderr, " Read:\n");
print_array(check, (size_t)size[0], (size_t)size[1], (size_t)size[2]);
goto error;
}
@@ -371,7 +371,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
HDmemset(buf, 0xff, nx * ny * nz);
if (H5Dread(dataset, TEST_DATATYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Read failed for whole array.\n");
+ fprintf(stderr, " Read failed for whole array.\n");
goto error;
}
for (i = 0; i < nx; i++) {
@@ -379,16 +379,16 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
for (k = 0; k < nz; k++) {
if (whole[i * ny * nz + j * nz + k] != buf[i * ny * nz + j * nz + k]) {
H5_FAILED();
- HDfprintf(stderr, " Check failed at i=%lu", (unsigned long)i);
+ fprintf(stderr, " Check failed at i=%lu", (unsigned long)i);
if (ndims > 1) {
- HDfprintf(stderr, ", j=%lu", (unsigned long)j);
+ fprintf(stderr, ", j=%lu", (unsigned long)j);
}
if (ndims > 2) {
- HDfprintf(stderr, ", k=%lu", (unsigned long)k);
+ fprintf(stderr, ", k=%lu", (unsigned long)k);
}
- HDfprintf(stderr, "\n Check array is:\n");
+ fprintf(stderr, "\n Check array is:\n");
print_array(whole, nx, ny, nz);
- HDfprintf(stderr, " Value read is:\n");
+ fprintf(stderr, " Value read is:\n");
print_array(buf, nx, ny, nz);
goto error;
}
@@ -488,7 +488,7 @@ test_sparse(hid_t f, const char *prefix, size_t nblocks, size_t nx, size_t ny, s
/* Build the new empty object */
HDsnprintf(name, sizeof(name), "%s_%s", prefix, dims);
if ((dataset = new_object(f, name, ndims, whole_size, chunk_dims)) < 0) {
- HDprintf(" Cannot create %u-d object `%s'\n", ndims, name);
+ printf(" Cannot create %u-d object `%s'\n", ndims, name);
goto error;
}
@@ -512,18 +512,18 @@ test_sparse(hid_t f, const char *prefix, size_t nblocks, size_t nx, size_t ny, s
/* write to disk */
if (H5Dwrite(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDprintf(" Write failed: ctr=%lu\n", (unsigned long)ctr);
- HDprintf(" offset=(%lu", (unsigned long)(offset[0]));
+ printf(" Write failed: ctr=%lu\n", (unsigned long)ctr);
+ printf(" offset=(%lu", (unsigned long)(offset[0]));
if (ndims > 1)
- HDprintf(",%lu", (unsigned long)(offset[1]));
+ printf(",%lu", (unsigned long)(offset[1]));
if (ndims > 2)
- HDprintf(",%lu", (unsigned long)(offset[2]));
- HDprintf("), size=(%lu", (unsigned long)(size[0]));
+ printf(",%lu", (unsigned long)(offset[2]));
+ printf("), size=(%lu", (unsigned long)(size[0]));
if (ndims > 1)
- HDprintf(",%lu", (unsigned long)(size[1]));
+ printf(",%lu", (unsigned long)(size[1]));
if (ndims > 2)
- HDprintf(",%lu", (unsigned long)(size[2]));
- HDprintf(")\n");
+ printf(",%lu", (unsigned long)(size[2]));
+ printf(")\n");
goto error;
}
@@ -592,18 +592,18 @@ main(int argc, char *argv[])
size_of_test |= TEST_LARGE;
}
else {
- HDprintf("unrecognized argument: %s\n", argv[i]);
+ printf("unrecognized argument: %s\n", argv[i]);
}
}
}
- HDprintf("Test sizes: ");
+ printf("Test sizes: ");
if (size_of_test & TEST_SMALL)
- HDprintf(" SMALL");
+ printf(" SMALL");
if (size_of_test & TEST_MEDIUM)
- HDprintf(" MEDIUM");
+ printf(" MEDIUM");
if (size_of_test & TEST_LARGE)
- HDprintf(" LARGE");
- HDprintf("\n");
+ printf(" LARGE");
+ printf("\n");
/* Set the random # seed */
HDsrandom((unsigned)HDtime(NULL));
@@ -625,7 +625,7 @@ main(int argc, char *argv[])
/* Create the test file */
h5_fixname(FILENAME[0], fapl, filename, sizeof filename);
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl)) < 0) {
- HDprintf("Cannot create file %s; test aborted\n", filename);
+ printf("Cannot create file %s; test aborted\n", filename);
HDexit(EXIT_FAILURE);
}
@@ -680,7 +680,7 @@ main(int argc, char *argv[])
*/
status = test_sparse(file, "sparse", (size_t)800, (size_t)50, (size_t)50, (size_t)50, skip_test);
if (skip_test)
- HDprintf(" The current VFD does not support sparse files on this platform.\n");
+ printf(" The current VFD does not support sparse files on this platform.\n");
nerrors += status < 0 ? 1 : 0;
}
@@ -692,11 +692,11 @@ main(int argc, char *argv[])
nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0);
if (nerrors) {
- HDprintf("***** %d I-STORE TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d I-STORE TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All i-store tests passed.\n");
+ printf("All i-store tests passed.\n");
h5_cleanup(FILENAME, fapl);