summaryrefslogtreecommitdiffstats
path: root/tools/h5ls/h5ls.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-02-22 14:03:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-02-22 14:03:59 (GMT)
commit60030b5631053ec7c4c9633f58ac9ae90bc2cbdd (patch)
tree1f14661f2892aa8eadba4e5993eddab0573aab8c /tools/h5ls/h5ls.c
parent147edec689b35162a38f13033565f2ca17a60661 (diff)
downloadhdf5-60030b5631053ec7c4c9633f58ac9ae90bc2cbdd.zip
hdf5-60030b5631053ec7c4c9633f58ac9ae90bc2cbdd.tar.gz
hdf5-60030b5631053ec7c4c9633f58ac9ae90bc2cbdd.tar.bz2
[svn-r21967] Checked all %lu references and corrected 2 that should have been '%"H5_PRINTF_LL_WIDTH"u'
Moved lib variables windows linking declarations to proper file location. Tested: local linux windows
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 55103a1..9668a22 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -2261,7 +2261,7 @@ print_array_type(h5tools_str_t *buffer, hid_t type, int ind)
/* Print dimensions */
for (i=0; i<ndims; i++)
- h5tools_str_append(buffer, "%s%lu" , i?",":"[", dims[i]);
+ h5tools_str_append(buffer, "%s%"H5_PRINTF_LL_WIDTH"u" , i?",":"[", dims[i]);
h5tools_str_append(buffer, "]");
free(dims);
@@ -2586,7 +2586,7 @@ list_attr(hid_t obj, const char *attr_name, const H5A_info_t UNUSED *ainfo,
/* simple dataspace */
h5tools_str_append(&buffer, " {");
for (i=0; i<ndims; i++) {
- h5tools_str_append(&buffer, "%s%lu", i?", ":"", size[i]);
+ h5tools_str_append(&buffer, "%s%"H5_PRINTF_LL_WIDTH"u", i?", ":"", size[i]);
nelmts *= size[i];
}
h5tools_str_append(&buffer, "}\n");