diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-19 19:30:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-19 19:30:14 +0000 |
commit | 194ec2ac183e92677470f2f7e488b0327aac167d (patch) | |
tree | 601b04065d8ab6f6439589d65cc4ef30a18f3af6 /usr.bin/ktrace/ktrace.c | |
parent | c0bce137d1afa7f549e4d17d27323fd8c81870cb (diff) |
improve docs; raj@cerias.purdue.edu
Diffstat (limited to 'usr.bin/ktrace/ktrace.c')
-rw-r--r-- | usr.bin/ktrace/ktrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index 3c953357acc..5a2f3aa1c60 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ktrace.c,v 1.14 2002/03/25 16:46:28 deraadt Exp $ */ +/* $OpenBSD: ktrace.c,v 1.15 2003/02/19 19:30:13 deraadt Exp $ */ /* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: ktrace.c,v 1.14 2002/03/25 16:46:28 deraadt Exp $"; +static char *rcsid = "$OpenBSD: ktrace.c,v 1.15 2003/02/19 19:30:13 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -126,7 +126,7 @@ main(argc, argv) argv += optind; argc -= optind; - if ((pidset && *argv) || (!pidset && !*argv)) + if ((pidset && *argv) || (!pidset && !*argv && clear != CLEAR)) usage(); if (inherit) @@ -195,7 +195,7 @@ static void usage() { (void)fprintf(stderr, -"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cenis]\n\tktrace [-aCcid] [-f trfile] [-t [cenis] command\n"); +"usage:\tktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t [ceinsw]]\n\tktrace [-adi] [-f trfile] [-t [ceinsw]] command\n"); exit(1); } @@ -206,7 +206,7 @@ no_ktrace(sig) char buf[8192]; snprintf(buf, sizeof(buf), -"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'options KTRACE'\n"); +"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'option KTRACE'\n"); write(STDERR_FILENO, buf, strlen(buf)); _exit(1); } |