Skip to contentSkip to conversation

blktrace: Fix documentation for version flag

PATCH In review Christof Schmitt 2 participants 3 messages Oct 15, 2008 – Oct 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blktrace: Fix documentation for version flag

blktrace uses the -V flag (uppercase) for printing the version information. Fix the man page and the usage information that wrongly state the -v flag (lowercase).

---
 blktrace.c     |    2 +-
 doc/blktrace.8 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
blktrace.c +1 -1
@@ -1756,7 +1756,7 @@ static int net_setup_client(void)
 
 static char usage_str[] = \
 	"-d <dev> [ -r debugfs path ] [ -o <output> ] [-k ] [ -w time ]\n" \
-	"[ -a action ] [ -A action mask ] [ -I  <devs file> ] [ -v ]\n\n" \
+	"[ -a action ] [ -A action mask ] [ -I  <devs file> ] [ -V ]\n\n" \
 	"\t-d Use specified device. May also be given last after options\n" \
 	"\t-r Path to mounted debugfs, defaults to /sys/kernel/debug\n" \
 	"\t-o File(s) to send output to\n" \
doc/blktrace.8 +1 -1
@@ -6,7 +6,7 @@ blktrace \- generate traces of the i/o t
 
 
 .SH SYNOPSIS
-.B blktrace \-d \fIdev\fR [ \-r \fIdebugfs_path\fR ] [ \-o \fIoutput\fR ] [\-k ] [ \-w \fItime\fR ] [ \-a \fIaction\fR ] [ \-A \fIaction_mask\fR ] [ \-v ]
+.B blktrace \-d \fIdev\fR [ \-r \fIdebugfs_path\fR ] [ \-o \fIoutput\fR ] [\-k ] [ \-w \fItime\fR ] [ \-a \fIaction\fR ] [ \-A \fIaction_mask\fR ] [ \-V ]
 .br
 
 
#1 lore raw
Quoted 24 lines · Christof Schmitt

blktrace uses the -V flag (uppercase) for printing the version information. Fix the man page and the usage information that wrongly state the -v flag (lowercase).

---
 blktrace.c     |    2 +-
 doc/blktrace.8 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
blktrace.c +1 -1
@@ -1756,7 +1756,7 @@ static int net_setup_client(void)
 
 static char usage_str[] = \
 	"-d <dev> [ -r debugfs path ] [ -o <output> ] [-k ] [ -w time ]\n" \
-	"[ -a action ] [ -A action mask ] [ -I  <devs file> ] [ -v ]\n\n" \
+	"[ -a action ] [ -A action mask ] [ -I  <devs file> ] [ -V ]\n\n" \
 	"\t-d Use specified device. May also be given last after options\n" \
 	"\t-r Path to mounted debugfs, defaults to /sys/kernel/debug\n" \
 	"\t-o File(s) to send output to\n" \

doc/blktrace.8 blktrace \- generate traces of the i/o t · line 10

Quoted 6 lines
doc/blktrace.8 +1 -1
@@ -6,7 +6,7 @@ blktrace \- generate traces of the i/o t
 
 
 .SH SYNOPSIS
-.B blktrace \-d \fIdev\fR [ \-r \fIdebugfs_path\fR ] [ \-o \fIoutput\fR ] [\-k ] [ \-w \fItime\fR ] [ \-a \fIaction\fR ] [ \-A \fIaction_mask\fR ] [ \-v ]
+.B blktrace \-d \fIdev\fR [ \-r \fIdebugfs_path\fR ] [ \-o \fIoutput\fR ] [\-k ] [ \-w \fItime\fR ] [ \-a \fIaction\fR ] [ \-A \fIaction_mask\fR ] [ \-V ]
 .br

I'll just change blktrace to take -v as well, that is what most other programs accept so no point in deviating there.

Signature · 1 line
Jens Axboe
#2 lore raw
In reply to Christof Schmitt
Quoted 2 lines · Jens Axboe

I'll just change blktrace to take -v as well, that is what most other programs accept so no point in deviating there.

That is also fine for me. I assumed changing the documentation would be simpler.

Christof