summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.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/h5ls.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/h5ls.c')
-rw-r--r--tools/h5ls.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 3692802..d523cf0 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1986,9 +1986,7 @@ main (int argc, char *argv[])
} else if (!strcmp(argv[argno], "--verbose")) {
verbose_g++;
} else if (!strcmp(argv[argno], "--version")) {
- printf("This is %s version %u.%u release %u%s\n",
- progname, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE,
- H5_VERS_SUBRELEASE);
+ print_version(progname);
exit(0);
} else if (!strcmp(argv[argno], "--hexdump")) {
hexdump_g = TRUE;
@@ -2046,9 +2044,7 @@ main (int argc, char *argv[])
verbose_g++;
break;
case 'V': /* --version */
- printf("This is %s version %u.%u release %u\n",
- progname, H5_VERS_MAJOR, H5_VERS_MINOR,
- H5_VERS_RELEASE);
+ print_version(progname);
exit(0);
case 'x': /* --hexdump */
hexdump_g = TRUE;