summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-23 21:29:21 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-23 21:29:21 (GMT)
commit1b6981c0620bde3f71c08d3575c47a724c98121e (patch)
tree6e8b915931084637d91c52ea47e203ae0594034d /tools/lib/h5diff_util.c
parentcaa9e0c055f0837061d6586c55fd99fc596114fa (diff)
downloadhdf5-1b6981c0620bde3f71c08d3575c47a724c98121e.zip
hdf5-1b6981c0620bde3f71c08d3575c47a724c98121e.tar.gz
hdf5-1b6981c0620bde3f71c08d3575c47a724c98121e.tar.bz2
[svn-r15938]
for some reason , the use of H5_PRINTF_LL_WIDTH to convert to a unsigned long long format, is not working in ia64 linux (tg-login3) extra characters are printed, this time in h5ls hardcoded the format defined in HSIZE_T_FORMAT to "%llu" tested: windows, linux (kagiso), solaris, ia64 linux (tg-login3)
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 559c5e5..223d591 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;
@@ -101,18 +103,15 @@ void
print_dimensions (int rank, hsize_t *dims)
{
int i;
- char fmt_ullong[8];
-
- sprintf(fmt_ullong, "%%llu");
-
+
parallel_print("[" );
for ( i = 0; i < rank-1; i++)
{
- parallel_print(fmt_ullong, dims[i]);
+ parallel_print(HSIZE_T_FORMAT, dims[i]);
parallel_print("x");
}
- parallel_print(fmt_ullong, dims[rank-1]);
+ parallel_print(HSIZE_T_FORMAT, dims[rank-1]);
parallel_print("]" );
}