summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-21 19:25:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-21 19:25:29 (GMT)
commit83abc3a4e4930cd94ae3dca06ef1e28c461bcc79 (patch)
tree4e9fa0e6e35c49b18d7510d39a3605d4c1bfcee8 /tools
parent00b0378cd307997f8d427c27e85d7f2e7f9ab0ac (diff)
downloadhdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.zip
hdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.tar.gz
hdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.tar.bz2
[svn-r15923] The printf call with the format "%"H5_PRINTF_LL_WIDTH"u" prints some garbage in linux ia64 unless we pass to the function a temporary pointer variable
Tested: windows, linux (kagiso), solaris, linux ia64 (tg-login3)
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5diff_dset.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index 38b7f16..84aff45 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -30,14 +30,17 @@ static void
print_size (int rank, hsize_t *dims)
{
int i;
+ unsigned long_long dim;
parallel_print("[" );
for ( i = 0; i < rank-1; i++)
{
- parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[i]);
+ dim = dims[i];
+ parallel_print("%"H5_PRINTF_LL_WIDTH"u", *((unsigned long_long *)((void *)dim))));
parallel_print("x");
}
- parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[rank-1]);
+ dim = dims[rank-1];
+ parallel_print("%"H5_PRINTF_LL_WIDTH"u", *((unsigned long_long *)((void *)dim)))));
parallel_print("]\n" );
}