diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 15:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 15:31:32 (GMT) |
commit | 187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch) | |
tree | baffa167d0796786241aef6b0ce76d4adec3b66e /test/swmr_remove_writer.c | |
parent | 7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff) | |
download | hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2 |
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'test/swmr_remove_writer.c')
-rw-r--r-- | test/swmr_remove_writer.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test/swmr_remove_writer.c b/test/swmr_remove_writer.c index d383e54..3e989f8 100644 --- a/test/swmr_remove_writer.c +++ b/test/swmr_remove_writer.c @@ -97,7 +97,7 @@ open_skeleton(const char *filename, unsigned verbose, unsigned old) /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Opening datasets\n"); + fprintf(stderr, "Opening datasets\n"); /* Open the datasets */ for (u = 0; u < NLEVELS; u++) @@ -186,7 +186,7 @@ remove_records(hid_t fid, unsigned verbose, unsigned long nshrinks, unsigned lon /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Closing datasets\n"); + fprintf(stderr, "Closing datasets\n"); /* Close the datasets */ for (u = 0; u < NLEVELS; u++) @@ -200,18 +200,18 @@ remove_records(hid_t fid, unsigned verbose, unsigned long nshrinks, unsigned lon static void usage(void) { - HDprintf("\n"); - HDprintf("Usage error!\n"); - HDprintf("\n"); - HDprintf("Usage: swmr_remove_writer [-q] [-o] [-f <# of shrinks between flushing\n"); - HDprintf(" file contents>] [-r <random seed>] <# of shrinks>\n"); - HDprintf("\n"); - HDprintf("<# of shrinks between flushing file contents> should be 0 (for no\n"); - HDprintf("flushing) or between 1 and (<# of shrinks> - 1)\n"); - HDprintf("\n"); - HDprintf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n"); - HDprintf("flushing every 1000 shrinks ('-f 1000'), and will generate a random seed (no -r given).\n"); - HDprintf("\n"); + printf("\n"); + printf("Usage error!\n"); + printf("\n"); + printf("Usage: swmr_remove_writer [-q] [-o] [-f <# of shrinks between flushing\n"); + printf(" file contents>] [-r <random seed>] <# of shrinks>\n"); + printf("\n"); + printf("<# of shrinks between flushing file contents> should be 0 (for no\n"); + printf("flushing) or between 1 and (<# of shrinks> - 1)\n"); + printf("\n"); + printf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n"); + printf("flushing every 1000 shrinks ('-f 1000'), and will generate a random seed (no -r given).\n"); + printf("\n"); HDexit(EXIT_FAILURE); } @@ -286,9 +286,9 @@ main(int argc, char *argv[]) /* Emit informational message */ if (verbose) { - HDfprintf(stderr, "Parameters:\n"); - HDfprintf(stderr, "\t# of shrinks between flushes = %ld\n", flush_count); - HDfprintf(stderr, "\t# of shrinks = %ld\n", nshrinks); + fprintf(stderr, "Parameters:\n"); + fprintf(stderr, "\t# of shrinks between flushes = %ld\n", flush_count); + fprintf(stderr, "\t# of shrinks = %ld\n", nshrinks); } /* end if */ /* Set the random seed */ @@ -299,11 +299,11 @@ main(int argc, char *argv[]) } /* end if */ HDsrandom(random_seed); /* ALWAYS emit the random seed for possible debugging */ - HDfprintf(stderr, "Using writer random seed: %u\n", random_seed); + fprintf(stderr, "Using writer random seed: %u\n", random_seed); /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Generating symbol names\n"); + fprintf(stderr, "Generating symbol names\n"); /* Generate dataset names */ if (generate_symbols() < 0) @@ -311,11 +311,11 @@ main(int argc, char *argv[]) /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Opening skeleton file: %s\n", FILENAME); + fprintf(stderr, "Opening skeleton file: %s\n", FILENAME); /* Open file skeleton */ if ((fid = open_skeleton(FILENAME, verbose, old)) < 0) { - HDfprintf(stderr, "Error opening skeleton file!\n"); + fprintf(stderr, "Error opening skeleton file!\n"); HDexit(EXIT_FAILURE); } /* end if */ @@ -324,31 +324,31 @@ main(int argc, char *argv[]) /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Removing records\n"); + fprintf(stderr, "Removing records\n"); /* Remove records from datasets */ if (remove_records(fid, verbose, (unsigned long)nshrinks, (unsigned long)flush_count) < 0) { - HDfprintf(stderr, "Error removing records from datasets!\n"); + fprintf(stderr, "Error removing records from datasets!\n"); HDexit(EXIT_FAILURE); } /* end if */ /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Releasing symbols\n"); + fprintf(stderr, "Releasing symbols\n"); /* Clean up the symbols */ if (shutdown_symbols() < 0) { - HDfprintf(stderr, "Error releasing symbols!\n"); + fprintf(stderr, "Error releasing symbols!\n"); HDexit(EXIT_FAILURE); } /* end if */ /* Emit informational message */ if (verbose) - HDfprintf(stderr, "Closing objects\n"); + fprintf(stderr, "Closing objects\n"); /* Close objects opened */ if (H5Fclose(fid) < 0) { - HDfprintf(stderr, "Error closing file!\n"); + fprintf(stderr, "Error closing file!\n"); HDexit(EXIT_FAILURE); } /* end if */ |