summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-07-10 21:01:24 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-07-10 21:01:24 (GMT)
commitdbee66c4573dbc851f5eef8cd7ee400d8f35557d (patch)
tree3628c58847b5919b9af0574249e9c025853107ca /tools
parentcc1c8a52be5682058f85f8f7df8f5784e2e8301f (diff)
downloadhdf5-dbee66c4573dbc851f5eef8cd7ee400d8f35557d.zip
hdf5-dbee66c4573dbc851f5eef8cd7ee400d8f35557d.tar.gz
hdf5-dbee66c4573dbc851f5eef8cd7ee400d8f35557d.tar.bz2
[svn-r23885] Issue VMS-3: OpenVMS needs special printing format "%hd" for 1-byte integer. I used the macro H5_VMS
to choose the correct format in the initialization of ls_dataformat. Tested with h5committest.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 832d91f..30f9e7a 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -45,7 +45,11 @@ static h5tool_format_t ls_dataformat = {
"", /*fmt_raw */
"%d", /*fmt_int */
"%u", /*fmt_uint */
+#ifdef H5_VMS
+ "%hd", /*fmt_schar */
+#else
"%hhd", /*fmt_schar */
+#endif
"%u", /*fmt_uchar */
"%d", /*fmt_short */
"%u", /*fmt_ushort */