summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorJon Povey <jon.povey@racelogic.co.uk>2010-09-02 11:48:30 +0900
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-02 13:24:26 +0300
commit8315cec7c17cbd228431c552bd1bf10d5f1689db (patch)
tree5da1005691980fbd4d891774bcf4855d8c0655ed /ubi-utils
parentde3c4601619bc638dc2a5444247674464abfbfdc (diff)
ubi-utils: reformat help text to fit in 80 columns
Reformat the help text of ubiattach and ubidetach to display nicely on 80 column terminals, also fix a couple of bits that did not make sense. Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/src/ubiattach.c20
-rw-r--r--ubi-utils/src/ubidetach.c2
2 files changed, 10 insertions, 12 deletions
diff --git a/ubi-utils/src/ubiattach.c b/ubi-utils/src/ubiattach.c
index 4454c38..5a7d2cf 100644
--- a/ubi-utils/src/ubiattach.c
+++ b/ubi-utils/src/ubiattach.c
@@ -56,17 +56,15 @@ static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION
" - a tool to attach MTD device to UBI.";
static const char *optionsstr =
-"-d, --devn=<UBI device number> the number to assign to the newly created UBI device\n"
-" (the number is assigned automatically if this is not\n"
-" specified\n"
-"-p, --dev-path=<path to device> path to MTD device node to attach\n"
-"-m, --mtdn=<MTD device number> MTD device number to attach (alternative method, e.g\n"
-" if the character device node does not exist)\n"
-"-O, --vid-hdr-offset VID header offset (do not specify this unless you\n"
-" really know what you do and the optimal defaults will\n"
-" be used)\n"
-"-h, --help print help message\n"
-"-V, --version print program version";
+"-d, --devn=<number> the number to assign to the newly created UBI device\n"
+" (assigned automatically if this is not specified)\n"
+"-p, --dev-path=<path> path to MTD device node to attach\n"
+"-m, --mtdn=<number> MTD device number to attach (alternative method, e.g\n"
+" if the character device node does not exist)\n"
+"-O, --vid-hdr-offset VID header offset (do not specify this unless you really\n"
+" know what you are doing, the default should be optimal)\n"
+"-h, --help print help message\n"
+"-V, --version print program version";
static const char *usage =
"Usage: " PROGRAM_NAME " [<UBI control device node file name>]\n"
diff --git a/ubi-utils/src/ubidetach.c b/ubi-utils/src/ubidetach.c
index c4c05a5..e0bc050 100644
--- a/ubi-utils/src/ubidetach.c
+++ b/ubi-utils/src/ubidetach.c
@@ -50,7 +50,7 @@ static struct args args = {
};
static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION
-" - a tool to remove UBI devices (detach MTD devices from UBI)";
+" - tool to remove UBI devices (detach MTD devices from UBI)";
static const char *optionsstr =
"-d, --devn=<UBI device number> UBI device number to delete\n"