diff options
author | 2017-08-12 19:00:08 +0000 | |
---|---|---|
committer | 2017-08-12 19:00:08 +0000 | |
commit | f471c1b300ffe5e6905df727b3be148a46886323 (patch) | |
tree | 1a5330416c72a81a986a618f8d5f4aa02abc0db7 | |
parent | Use the login name from id -p to compare with ps -o login. This (diff) | |
download | wireguard-openbsd-f471c1b300ffe5e6905df727b3be148a46886323.tar.xz wireguard-openbsd-f471c1b300ffe5e6905df727b3be148a46886323.zip |
tweak usage
prompted by and ok jmc@
-rw-r--r-- | usr.bin/ctfconv/ctfconv.1 | 11 | ||||
-rw-r--r-- | usr.bin/ctfconv/ctfconv.c | 5 |
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ctfconv/ctfconv.1 b/usr.bin/ctfconv/ctfconv.1 index a7d0219da96..48623ded2a9 100644 --- a/usr.bin/ctfconv/ctfconv.1 +++ b/usr.bin/ctfconv/ctfconv.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ctfconv.1,v 1.4 2017/08/11 19:34:24 jasper Exp $ +.\" $OpenBSD: ctfconv.1,v 1.5 2017/08/12 19:00:08 jasper Exp $ .\" .\" Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 11 2017 $ +.Dd $Mdocdate: August 12 2017 $ .Dt CTFCONV 1 .Os .Sh NAME @@ -22,8 +22,7 @@ .Nd generates a raw CTF section from debug data .Sh SYNOPSIS .Nm ctfconv -.Fl d file -.Nm ctfconv +.Op Fl d .Fl l Ar label .Fl o Ar outfile .Ar file @@ -42,7 +41,9 @@ The options are as follows: Display types as if they would be dumped from a .Dv .SUNW_ctf section by -.Xr ctfdump 1 . +.Xr ctfdump 1 +and exit. +This option cannot be used in conjuction with other modes of operation. .It Fl l Ar label Set the .Dv CTF diff --git a/usr.bin/ctfconv/ctfconv.c b/usr.bin/ctfconv/ctfconv.c index 8f8e2cd7a0a..5d95ee2334f 100644 --- a/usr.bin/ctfconv/ctfconv.c +++ b/usr.bin/ctfconv/ctfconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfconv.c,v 1.6 2017/08/11 20:49:26 jasper Exp $ */ +/* $OpenBSD: ctfconv.c,v 1.7 2017/08/12 19:00:08 jasper Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -77,8 +77,7 @@ struct itype_queue iobjq = TAILQ_HEAD_INITIALIZER(iobjq); __dead void usage(void) { - fprintf(stderr, "usage: %s -d file\n", getprogname()); - fprintf(stderr, " %s -l label -o outfile file\n", + fprintf(stderr, "usage: %s [-d] -l label -o outfile file\n", getprogname()); exit(1); } |