diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-08-22 21:48:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-08-22 21:48:46 (GMT) |
commit | c48649abd8010095c013ac005d1ea4094f1c76b9 (patch) | |
tree | 0906f70eff022b41e6b2f128f4ffeee0c21a49c9 /tools/misc | |
parent | 92d6292b1082f7696b3bbfc4ed3c5ff7727a8763 (diff) | |
download | hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.zip hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.tar.gz hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.tar.bz2 |
OESS-29 Fix shared MPI builds, more HD prefix
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/h5debug.c | 2 | ||||
-rw-r--r-- | tools/misc/h5repart.c | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/tools/misc/h5debug.c b/tools/misc/h5debug.c index f758b1f..245b5a1 100644 --- a/tools/misc/h5debug.c +++ b/tools/misc/h5debug.c @@ -178,7 +178,7 @@ main(int argc, char *argv[]) } /* end if */ if(HDstrchr(argv[1], '%')) if(H5Pset_fapl_family (fapl, (hsize_t)0, H5P_DEFAULT) < 0) { - fprintf(stderr, "cannot set file access property list\n"); + HDfprintf(stderr, "cannot set file access property list\n"); HDexit(1); } if((fid = H5Fopen(argv[1], H5F_ACC_RDONLY, fapl)) < 0) { diff --git a/tools/misc/h5repart.c b/tools/misc/h5repart.c index f6252b2..dea27d4 100644 --- a/tools/misc/h5repart.c +++ b/tools/misc/h5repart.c @@ -66,18 +66,18 @@ static void usage (const char *progname) { - fprintf(stderr, "usage: %s [-v] [-V] [-[b|m] N[g|m|k]] [-family_to_sec2] SRC DST\n", + HDfprintf(stderr, "usage: %s [-v] [-V] [-[b|m] N[g|m|k]] [-family_to_sec2] SRC DST\n", progname); - fprintf(stderr, " -v Produce verbose output\n"); - fprintf(stderr, " -V Print a version number and exit\n"); - fprintf(stderr, " -b N The I/O block size, defaults to 1kB\n"); - fprintf(stderr, " -m N The destination member size or 1GB\n"); - fprintf(stderr, " -family_to_sec2 Change file driver from family to sec2\n"); - fprintf(stderr, " SRC The name of the source file\n"); - fprintf(stderr, " DST The name of the destination files\n"); - fprintf(stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or " + HDfprintf(stderr, " -v Produce verbose output\n"); + HDfprintf(stderr, " -V Print a version number and exit\n"); + HDfprintf(stderr, " -b N The I/O block size, defaults to 1kB\n"); + HDfprintf(stderr, " -m N The destination member size or 1GB\n"); + HDfprintf(stderr, " -family_to_sec2 Change file driver from family to sec2\n"); + HDfprintf(stderr, " SRC The name of the source file\n"); + HDfprintf(stderr, " DST The name of the destination files\n"); + HDfprintf(stderr, "Sizes may be suffixed with `g' for GB, `m' for MB or " "`k' for kB.\n"); - fprintf(stderr, "File family names include an integer printf " + HDfprintf(stderr, "File family names include an integer printf " "format such as `%%d'\n"); exit (EXIT_FAILURE); } @@ -255,7 +255,7 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } src_size = src_act_size = sb.st_size; - if (verbose) fprintf (stderr, "< %s\n", src_name); + if (verbose) HDfprintf (stderr, "< %s\n", src_name); /* * Get the name for the destination file and open the first member. @@ -269,7 +269,7 @@ main (int argc, char *argv[]) HDperror (dst_name); HDexit (EXIT_FAILURE); } - if (verbose) fprintf (stderr, "> %s\n", dst_name); + if (verbose) HDfprintf (stderr, "> %s\n", dst_name); /* No more arguments */ if (argno<argc) usage (prog_name); @@ -295,7 +295,7 @@ main (int argc, char *argv[]) perror ("read"); exit (EXIT_FAILURE); } else if ((size_t)nio!=n) { - fprintf (stderr, "%s: short read\n", src_name); + HDfprintf (stderr, "%s: short read\n", src_name); exit (EXIT_FAILURE); } for (i=0; i<n; i++) { @@ -322,7 +322,7 @@ main (int argc, char *argv[]) perror ("write"); exit (EXIT_FAILURE); } else if ((size_t)nio!=n) { - fprintf (stderr, "%s: short write\n", dst_name); + HDfprintf (stderr, "%s: short write\n", dst_name); exit (EXIT_FAILURE); } need_seek = FALSE; @@ -359,11 +359,11 @@ main (int argc, char *argv[]) } src_act_size = sb.st_size; if (src_act_size>src_size) { - fprintf (stderr, "%s: member truncated to %lu bytes\n", + HDfprintf (stderr, "%s: member truncated to %lu bytes\n", src_name, (unsigned long)src_size); } src_offset = 0; - if (verbose) fprintf (stderr, "< %s\n", src_name); + if (verbose) HDfprintf (stderr, "< %s\n", src_name); } /* @@ -399,7 +399,7 @@ main (int argc, char *argv[]) } dst_offset = 0; need_seek = FALSE; - if (verbose) fprintf (stderr, "> %s\n", dst_name); + if (verbose) HDfprintf (stderr, "> %s\n", dst_name); } } |