From a75186cc511760578d8a9de722a16873371b6570 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Tue, 19 Dec 2006 14:51:53 -0500 Subject: [svn-r13078] one more fix related to bug 551. the printing of the subsetting parameters was not using the new hsize_t printing format correct output is now [pvn@kagiso ad]$ /home1/pvn/build_hdf5/tools/h5dump/h5dump -d /a -s "0,8899716890" -c "1,10" jasp_char.h5 HDF5 "jasp_char.h5" { DATASET "/a" { DATATYPE H5T_STD_I8LE DATASPACE SIMPLE { ( 20, 8899716900 ) / ( 20, 8899716900 ) } SUBSET { START ( 0, 8899716890 ); STRIDE ( 1, 1 ); COUNT ( 1, 10 ); BLOCK ( 1, 1 ); DATA { (0,8899716890): 1, (0,8899716891): 1, (0,8899716892): 2, (0,8899716893): 2, (0,8899716894): 3, (0,8899716895): 3, (0,8899716896): 4, (0,8899716897): 4, (0,8899716898): 5, (0,8899716899): 5 } } } } --- tools/h5dump/h5dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index fbe7c75..1a61197 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -2015,7 +2015,7 @@ dump_dims(hsize_t *s, int dims) int i; for (i = 0; i < dims; i++) { - printf("%u", (unsigned int)s[i]); + printf(HSIZE_T_FORMAT, s[i]); if (i + 1 != dims) printf(", "); -- cgit v0.12