diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-04-30 10:56:04 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-11 08:43:44 +0200 |
commit | 306a8ee991a42055365aade54b9c988e5373cef5 (patch) | |
tree | 12cb3322ca3b8d36c319a0f4af08affaddafa2eb /btreplay/btrecord.c | |
parent | 580f7440b93c08266867716dc4b891845f7ad891 (diff) | |
download | blktrace-306a8ee991a42055365aade54b9c988e5373cef5.tar.gz blktrace-306a8ee991a42055365aade54b9c988e5373cef5.tar.bz2 |
fix max-pkts option inconsistencies
This is for RH bug 498426,
btrecord doesn't recognize --max-pkts and --max-packets cmd line options
Usage text and some documentation references "--max-pkts" and
the man page references "--max-packets" but the getopts code
is looking for --max_pkts.
I'm not sure if it's best to make the code match the majority
of the docs, or fix the docs to match the code? This patch does
the former, but I'm not picky if you want to go the other way :)
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'btreplay/btrecord.c')
-rw-r--r-- | btreplay/btrecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btreplay/btrecord.c b/btreplay/btrecord.c index 09329f7..88ab806 100644 --- a/btreplay/btrecord.c +++ b/btreplay/btrecord.c @@ -152,7 +152,7 @@ static struct option l_opts[] = { .val = 'm' }, { - .name = "max_pkts", + .name = "max-pkts", .has_arg = required_argument, .flag = NULL, .val = 'M' |