summaryrefslogtreecommitdiffstats
path: root/tools/misc/h5repart.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/misc/h5repart.c')
-rw-r--r--tools/misc/h5repart.c34
1 files changed, 17 insertions, 17 deletions
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);
}
}