summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-05-10 17:20:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-05-10 17:20:15 (GMT)
commit7dc0c79c543321b1a22a35926b90f10cb3ad8e9c (patch)
treec102627e5039bce2075116908e1741a6bf0c5723 /tools
parentdd45c3694ffc423170b513f8be339d5bc4484476 (diff)
downloadhdf5-7dc0c79c543321b1a22a35926b90f10cb3ad8e9c.zip
hdf5-7dc0c79c543321b1a22a35926b90f10cb3ad8e9c.tar.gz
hdf5-7dc0c79c543321b1a22a35926b90f10cb3ad8e9c.tar.bz2
HDFFV-10186 - h5tools_str_append is not printf
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 7396e8c..b7a2c1e 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -746,7 +746,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
size_t i;
if(1 == nsize)
- h5tools_str_append(str, OPT(info->fmt_raw, "%#02x"), ucp_vp[0]);
+ h5tools_str_append(str, OPT(info->fmt_raw, "0x%02x"), ucp_vp[0]);
else
for(i = 0; i < nsize; i++) {
if(i)
@@ -1100,7 +1100,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
else {
size_t i;
if(1 == nsize)
- h5tools_str_append(str, "%#02x", ucp_vp[0]);
+ h5tools_str_append(str, "0x%02x", ucp_vp[0]);
else
for(i = 0; i < nsize; i++)
h5tools_str_append(str, "%s%02x", i ? ":" : "", ucp_vp[i]);
@@ -1283,7 +1283,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
/* All other types get printed as hexadecimal */
size_t i;
if(1 == nsize)
- h5tools_str_append(str, "%#02x", ucp_vp[0]);
+ h5tools_str_append(str, "0x%02x", ucp_vp[0]);
else
for(i = 0; i < nsize; i++)
h5tools_str_append(str, "%s%02x", i ? ":" : "", ucp_vp[i]);