summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-01-05 18:58:21 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-01-05 18:58:21 (GMT)
commitb07be6d5218314d078137586cb8dc7bf0dfb5e2e (patch)
tree4f9daca4c68a75586824f1579dd4489aa7ca09e3 /tools/h5dump/h5dump.c
parent13f204c280c52064335a6415e8b61bfe1df5cd8c (diff)
downloadhdf5-b07be6d5218314d078137586cb8dc7bf0dfb5e2e.zip
hdf5-b07be6d5218314d078137586cb8dc7bf0dfb5e2e.tar.gz
hdf5-b07be6d5218314d078137586cb8dc7bf0dfb5e2e.tar.bz2
[svn-r19916] Add hh modifier to signed char printf format string. Added h5dump test to verify that signed/unsigned datasets print correctly.
Solves problem on heiwa with Signed char of 8 bits Tested: local linux, heiwa
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index a4e7473..eff0b14 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -149,7 +149,7 @@ static h5tool_format_t dataformat = {
"", /*fmt_raw */
"%d", /*fmt_int */
"%u", /*fmt_uint */
- "%d", /*fmt_schar */
+ "%hhd", /*fmt_schar */
"%u", /*fmt_uchar */
"%d", /*fmt_short */
"%u", /*fmt_ushort */
@@ -233,7 +233,7 @@ static h5tool_format_t xml_dataformat = {
"", /*fmt_raw */
"%d", /*fmt_int */
"%u", /*fmt_uint */
- "%d", /*fmt_schar */
+ "%hhd", /*fmt_schar */
"%u", /*fmt_uchar */
"%d", /*fmt_short */
"%u", /*fmt_ushort */