summaryrefslogtreecommitdiff
path: root/blkparse.c
diff options
context:
space:
mode:
authorEdward Shishkin <edward@redhat.com>2009-12-15 18:47:53 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-04-20 09:51:52 +0200
commitbc14c53fb79ecf2dedf52c55d8601ea4af500ce8 (patch)
tree9b5b50892aa6370fc3b18eba73f32e993f47f6f9 /blkparse.c
parent4b747a4016573e7f2510b6ab767783a2708d1e55 (diff)
downloadblktrace-bc14c53fb79ecf2dedf52c55d8601ea4af500ce8.tar.gz
blktrace-bc14c53fb79ecf2dedf52c55d8601ea4af500ce8.tar.bz2
blktrace: print correct usage
Fixup for 498898: Problem: When somebody runs blktrace without parameters, it shows the usage message. The usage message suggests that version number "x.y.z" is a required parameter, which is not true. Solution: Don't print version number when running blktrace, blkparce, btt without parameters. Signed-off-by: Edward Shishkin <edward@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blkparse.c')
-rw-r--r--blkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blkparse.c b/blkparse.c
index 9bd8023..ffad9b6 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -2702,7 +2702,7 @@ static char usage_str[] = "\n\n" \
static void usage(char *prog)
{
- fprintf(stderr, "Usage: %s %s %s", prog, blkparse_version, usage_str);
+ fprintf(stderr, "Usage: %s %s", prog, usage_str);
}
int main(int argc, char *argv[])