summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 8c6391e..9328a44 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -1846,17 +1846,14 @@ void indentation(int x) {
}
}
-
-
-
-
/* Print the program name and the version information which is */
/* defined the same as the HDF5 library version. */
-void print_version(char *program_name)
+void
+print_version(char *program_name)
{
- printf("%s: Version %u.%u.%u%s\n",
- program_name, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE,
- H5_VERS_SUBRELEASE);
+ printf("%s: Version %u.%u.%u%s%s\n",
+ program_name, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE,
+ H5_VERS_SUBRELEASE[0]?"-":"", H5_VERS_SUBRELEASE);
}