diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-05-04 15:40:53 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-11 08:43:44 +0200 |
commit | bc93336f08a3773cdc8d88eda035346e3896fa29 (patch) | |
tree | 786af6ec99174a5822662b38204270235c1e2f1c /btrace | |
parent | fbdf23ecc21c6fbbc6fd25d41e3072d06188d274 (diff) | |
download | blktrace-bc93336f08a3773cdc8d88eda035346e3896fa29.tar.gz blktrace-bc93336f08a3773cdc8d88eda035346e3896fa29.tar.bz2 |
fix up btrace options & manpage
The btrace script & man page didn't quite match for options,
and the btrace script was missing a few options in the getopts
specification (b&n). Also, there seems to be no such thing as
a "summarize" option anywhere, so remove it.
Reported-by: /Milos Malik <mmalik@redhat.com <mailto:mmalik@redhat.com>>/
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'btrace')
-rw-r--r-- | btrace | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -8,11 +8,10 @@ TRACEOPTS="" PARSEOPTS="-b100000" -SUMMARIZE="" -USAGE="Usage: btrace [-s] [-t] [-S] [-w N] [-a <trace>...] [-r <dbg mnt]<dev>..." +USAGE="Usage: btrace [-s] [-t] [-w N] [-n N] [-b N] [-a <trace>...] [-r <dbg mnt>] <dev>..." DIRNAME=`dirname $0` -while getopts "a:r:stSw:hv" c +while getopts "a:w:n:b:r:sthv" c do case $c in a) TRACEOPTS=$TRACEOPTS" -a "$OPTARG" ";; @@ -24,13 +23,11 @@ do t) PARSEOPTS=$PARSEOPTS" -t";; h) PARSEOPTS=$PARSEOPTS" -h";; v) PARSEOPTS=$PARSEOPTS" -v";; - S) SUMMARIZE="";; \?) echo $USAGE 1>&2 exit 2 ;; esac done -PARSEOPTS="${PARSEOPTS} ${SUMMARIZE}" shift `expr $OPTIND - 1` if [ $# -eq 0 ]; then |