projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1453cd8
)
Put pg_test_fsync --help and --version output in line with conventions
author
Peter Eisentraut
<peter_e@gmx.net>
Tue, 10 May 2011 18:34:26 +0000
(21:34 +0300)
committer
Peter Eisentraut
<peter_e@gmx.net>
Tue, 10 May 2011 18:34:26 +0000
(21:34 +0300)
Foremost, it should go to stdout.
contrib/pg_test_fsync/pg_test_fsync.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_test_fsync/pg_test_fsync.c
b/contrib/pg_test_fsync/pg_test_fsync.c
index 2b2e292022a3675255c3caab4bdf894ea9ca309b..3791f5a07193570af73bbd1add31a079804abda2 100644
(file)
--- a/
contrib/pg_test_fsync/pg_test_fsync.c
+++ b/
contrib/pg_test_fsync/pg_test_fsync.c
@@
-96,12
+96,12
@@
handle_args(int argc, char *argv[])
if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0 ||
strcmp(argv[1], "-?") == 0)
{
-
fprintf(stderr, "%s [-f filename] [-o ops-per-test
]\n", progname);
+
printf("Usage: %s [-f FILENAME] [-o OPS-PER-TEST
]\n", progname);
exit(0);
}
if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
{
-
fprintf(stderr, "%s %s\n", progname,
PG_VERSION);
+
puts("pg_test_fsync (PostgreSQL) "
PG_VERSION);
exit(0);
}
}