From f76c3b56e1ccf81b16225fa6935adb45ac6d2f38 Mon Sep 17 00:00:00 2001 From: kmu Date: Tue, 27 Sep 2016 14:04:19 -0500 Subject: fix the issue of h5dump fails to print full precision --- tools/lib/h5tools_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 6d9a041..3b75215 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -803,7 +803,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai long double templdouble; HDmemcpy(&templdouble, vp, sizeof(long double)); - h5tools_str_append(str, "%Lf", templdouble); + h5tools_str_append(str, OPT(info->fmt_double, "%Lf"), templdouble); #endif } break; -- cgit v0.12