summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-09-13 15:55:19 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-09-13 15:55:19 (GMT)
commit9e56bed5e0921e0d1399325eaf5f092d1f19590a (patch)
tree2952e9c97610e5bbd6896c173b19e02d83f063d4 /tools/lib/h5tools_str.c
parent9115bab9e36d72bb395820e38b6bee4c99dcd78c (diff)
downloadhdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.zip
hdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.tar.gz
hdf5-9e56bed5e0921e0d1399325eaf5f092d1f19590a.tar.bz2
[svn-r21379] The tools used "%hhd" to print signed char. But VMS doesn't know it. So I used H5_VMS to have a different way ("%hd") to print it.
Tested on jam and VMS.
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index b278197..e7d920c 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -836,7 +836,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
else
tempchar = (tempchar >> packed_data_offset) & packed_data_mask;
}
+#ifdef H5_VMS
+ h5tools_str_append(str, OPT(info->fmt_schar, "%hd"), tempchar);
+#else
h5tools_str_append(str, OPT(info->fmt_schar, "%hhd"), tempchar);
+#endif
}
else if (H5Tequal(type, H5T_NATIVE_UCHAR)) {
unsigned char tempuchar;