summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2000-04-21 19:28:09 (GMT)
committerRobb Matzke <matzke@llnl.gov>2000-04-21 19:28:09 (GMT)
commit7a52d6ce9b3e61cfdd3ded845b23daae440a7cfb (patch)
tree37050c02472a6b12d16596e10eaf56a8b4489223 /tools/h5tools.c
parent82431da792833d83c3a7e528983a5192f3da1582 (diff)
downloadhdf5-7a52d6ce9b3e61cfdd3ded845b23daae440a7cfb.zip
hdf5-7a52d6ce9b3e61cfdd3ded845b23daae440a7cfb.tar.gz
hdf5-7a52d6ce9b3e61cfdd3ded845b23daae440a7cfb.tar.bz2
[svn-r2180] ./src/tools/h5tools.c
Added hyphen to version printf format. ./src/tools/h5ls.c Calls print_version() instead of doing it by hand.
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);
}