diff mbox

[08/10] btrfs-progs: Update usage string of btrfs-map-logical

Message ID 1375335334-32540-8-git-send-email-wangsl.fnst@cn.fujitsu.com (mailing list archive)
State Under Review, archived
Headers show

Commit Message

Wang Shilong Aug. 1, 2013, 5:35 a.m. UTC
btrfs-map-logical supports both short and long options, and also every option
should follow an arg,fix it.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
 btrfs-map-logical.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index b9635f7..e46d812 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -86,10 +86,14 @@  struct extent_buffer *debug_read_block(struct btrfs_root *root, u64 bytenr,
 static void print_usage(void)
 {
 	fprintf(stderr, "usage: btrfs-map-logical [options] device\n");
-	fprintf(stderr, "\t-l Logical extent to map\n");
-	fprintf(stderr, "\t-c Copy of the extent to read (usually 1 or 2)\n");
-	fprintf(stderr, "\t-o Output file to hold the extent\n");
-	fprintf(stderr, "\t-b Number of bytes to read\n");
+	fprintf(stderr,
+		"\t-l|--logical <logical_num> Logical extent to map\n");
+	fprintf(stderr,
+		"\t-c|--copy <copy> Copy of the extent to read (usually 1 or 2)\n");
+	fprintf(stderr,
+		"\t-o|--output <filename> Output file to hold the extent\n");
+	fprintf(stderr,
+		"\t-b|--bytes <bytes> Number of bytes to read\n");
 	exit(1);
 }