summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-29 19:56:24 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-29 19:56:24 (GMT)
commit840c6e34d3aa5d6069da7a8525fb60d0c2dbcfa4 (patch)
treef6f2b44f8511cc8cc2ce3eb00575f7f709c7d76c /tools/lib/h5diff_util.c
parent13294e2042f855e92653dc7ca3ff3b5980ee816d (diff)
downloadhdf5-840c6e34d3aa5d6069da7a8525fb60d0c2dbcfa4.zip
hdf5-840c6e34d3aa5d6069da7a8525fb60d0c2dbcfa4.tar.gz
hdf5-840c6e34d3aa5d6069da7a8525fb60d0c2dbcfa4.tar.bz2
[svn-r15989] Merge with 1.8 up to rev 15945
Regarding use of unsigned long long print format Tested: linux
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index f1e5f54..24c8df1 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -16,6 +16,8 @@
#include "h5diff.h"
#include "ph5diff.h"
#include "H5private.h"
+#include "h5tools.h"
+
/* global variables */
int g_nTasks = 1;
@@ -100,15 +102,16 @@ void parallel_print(const char* format, ...)
void
print_dimensions (int rank, hsize_t *dims)
{
- int i;
-
+ int i;
+
parallel_print("[" );
for ( i = 0; i < rank-1; i++)
{
- parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[i]);
+ parallel_print(HSIZE_T_FORMAT, dims[i]);
parallel_print("x");
}
- parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[rank-1]);
+
+ parallel_print(HSIZE_T_FORMAT, dims[rank-1]);
parallel_print("]" );
}