Skip to contentSkip to conversation

ubiattach: fix wording in usage example

PATCH Applied Mohammad Rahimi 3 participants 3 messages Feb 12 – Apr 13 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ubiattach: fix wording in usage example

The usage example 4 describing reserved eraseblocks had awkward and slightly incorrect phrasing ("is total flash chip eraseblocks count"). Reword it for clarity and readability without changing the meaning.

---
 ubi-utils/ubiattach.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ubi-utils/ubiattach.c +3 -3
index e758dab..11e171b 100644
@@ -92,9 +92,9 @@ static const char usage[] =
 "           and create UBI device number 3 (ubi3)\n"
 "Example 4: " PROGRAM_NAME " -m 1 -b 25 - attach /dev/mtd1 to UBI and reserve\n"
 "           25*C/1024 eraseblocks for bad block handling, where C is the flash\n"
-"           is total flash chip eraseblocks count, that is flash chip size in\n"
-"           eraseblocks (including bad eraseblocks). E.g., if the flash chip\n"
-"           has 4096 PEBs, 100 will be reserved.";
+"           chip total eraseblocks count, that is flash chip size in eraseblocks\n"
+"           (including bad eraseblocks). E.g., if the flash chip has 4096 PEBs,\n"
+"           100 will be reserved.";
 
 static const struct option long_options[] = {
 	{ .name = "devn",            .has_arg = 1, .flag = NULL, .val = 'd' },
Signature · 6 lines
2.51.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Mohammad Rahimi

The usage example 4 describing reserved eraseblocks had awkward and slightly incorrect phrasing ("is total flash chip eraseblocks count"). Reword it for clarity and readability without changing the meaning.

---
  ubi-utils/ubiattach.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 9 lines
ubi-utils/ubiattach.c +0 -0
index e758dab..11e171b 100644
@@ -92,9 +92,9 @@ static const char usage[] =
  "           and create UBI device number 3 (ubi3)\n"
  "Example 4: " PROGRAM_NAME " -m 1 -b 25 - attach /dev/mtd1 to UBI and reserve\n"

ubi-utils/ubiattach.c static const char usage[] = · line 100

Quoted 10 lines
ubi-utils/ubiattach.c +3 -3
  "           25*C/1024 eraseblocks for bad block handling, where C is the flash\n"
-"           is total flash chip eraseblocks count, that is flash chip size in\n"
-"           eraseblocks (including bad eraseblocks). E.g., if the flash chip\n"
-"           has 4096 PEBs, 100 will be reserved.";
+"           chip total eraseblocks count, that is flash chip size in eraseblocks\n"
+"           (including bad eraseblocks). E.g., if the flash chip has 4096 PEBs,\n"
+"           100 will be reserved.";
 
  static const struct option long_options[] = {
  	{ .name = "devn",            .has_arg = 1, .flag = NULL, .val = 'd' },

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/