summaryrefslogtreecommitdiffstats
path: root/perform/sio_perf.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-06-24 13:51:40 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-06-24 13:51:40 (GMT)
commitafea64705b12ceaa02d844990bd8e5c0da1ae52f (patch)
treefe4e376f7c641b2be053f93594ef5628d2bbe373 /perform/sio_perf.c
parent9e6bb09a9fe6aca8b0567bc3e28006be0d393914 (diff)
downloadhdf5-afea64705b12ceaa02d844990bd8e5c0da1ae52f.zip
hdf5-afea64705b12ceaa02d844990bd8e5c0da1ae52f.tar.gz
hdf5-afea64705b12ceaa02d844990bd8e5c0da1ae52f.tar.bz2
[svn-r23808] merge 23801 from trunk.
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=");