summaryrefslogtreecommitdiffstats
path: root/perform/sio_perf.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-06-20 22:21:42 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-06-20 22:21:42 (GMT)
commit148fc618725c5b3e2749506490dae3ebeb7b4384 (patch)
tree9b61102e4fe86d668a304a8275277554445cab36 /perform/sio_perf.c
parent125e2a0a9d8beb22ab06e3300624df24a1192214 (diff)
downloadhdf5-148fc618725c5b3e2749506490dae3ebeb7b4384.zip
hdf5-148fc618725c5b3e2749506490dae3ebeb7b4384.tar.gz
hdf5-148fc618725c5b3e2749506490dae3ebeb7b4384.tar.bz2
[svn-r23801] Change printfs in perform output for long long to use %lld instead of %Hd. The later is for shorts.
This fixes: https://jira.hdfgroup.uiuc.edu/browse/HDFFV-8450 Tested on Jam.
Diffstat (limited to 'perform/sio_perf.c')
-rw-r--r--perform/sio_perf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/perform/sio_perf.c b/perform/sio_perf.c
index 16e1750..a7de8eb 100644
--- a/perform/sio_perf.c
+++ b/perform/sio_perf.c
@@ -827,14 +827,14 @@ recover_size_and_print(long long val, const char *end)
if (val >= ONE_KB && (val % ONE_KB) == 0) {
if (val >= ONE_MB && (val % ONE_MB) == 0) {
if (val >= ONE_GB && (val % ONE_GB) == 0)
- HDfprintf(output, "%HdGB%s", val / ONE_GB, end);
+ HDfprintf(output, "%lldGB%s", val / ONE_GB, end);
else
- HDfprintf(output, "%HdMB%s", val / ONE_MB, end);
+ HDfprintf(output, "%lldMB%s", val / ONE_MB, end);
} else {
- HDfprintf(output, "%HdKB%s", val / ONE_KB, end);
+ HDfprintf(output, "%lldKB%s", val / ONE_KB, end);
}
} else {
- HDfprintf(output, "%Hd%s", val, end);
+ HDfprintf(output, "%lld%s", val, end);
}
}
@@ -860,7 +860,7 @@ report_parameters(struct options *opts)
HDfprintf(output, "IO API=");
print_io_api(opts->io_types);
- HDfprintf(output, "Number of iterations=%Hd\n",
+ HDfprintf(output, "Number of iterations=%lld\n",
(long long)opts->num_iters);
HDfprintf(output, "Dataset size=");