summaryrefslogtreecommitdiffstats
path: root/commands/partition.c
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-19 11:23:24 +0200
committersascha <sascha@nomad.localdomain>2007-10-19 11:23:24 +0200
commit95db50e812816127caf570449205a80cd626c263 (patch)
tree49f0b0a002e85e0356894a871e6654df01e64efd /commands/partition.c
parenta39dde980d8c648ffb74b12a4c1ca7466c792fa2 (diff)
downloadbarebox-95db50e812816127caf570449205a80cd626c263.tar.gz
barebox-95db50e812816127caf570449205a80cd626c263.tar.xz
Fix documentation for addpart/delpart/devinfo. These commands
now take a device file, not a device id.
Diffstat (limited to 'commands/partition.c')
-rw-r--r--commands/partition.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/commands/partition.c b/commands/partition.c
index 421f01fc2..25bdfee45 100644
--- a/commands/partition.c
+++ b/commands/partition.c
@@ -178,14 +178,13 @@ err_out:
}
static __maybe_unused char cmd_addpart_help[] =
-"Usage: addpart <partition description>\n"
+"Usage: addpart <device> <partition description>\n"
"addpart adds a partition description to a device. The partition description\n"
"has the form\n"
-"dev:size1(name1)[ro],size2(name2)[ro],...\n"
-"<dev> is the device name under /dev. Size can be given in decimal or if\n"
-"prefixed with 0x in hex. Sizes can have an optional suffix K,M,G. The size\n"
-"of the last partition can be specified as '-' for the remaining space of the\n"
-"device.\n"
+"size1(name1)[ro],size2(name2)[ro],...\n"
+"<device> is the device name under. Size can be given in decimal or if prefixed\n"
+"with 0x in hex. Sizes can have an optional suffix K,M,G. The size of the last\n"
+"partition can be specified as '-' for the remaining space of the device.\n"
"This format is the same as used in the Linux kernel for cmdline mtd partitions.\n"
"Note That this command has to be reworked and will probably change it's API.";
@@ -217,10 +216,8 @@ static int do_delpart(cmd_tbl_t * cmdtp, int argc, char *argv[])
}
static __maybe_unused char cmd_delpart_help[] =
-"Usage: delpart <dev>\n"
-"Delete partitions previously added to a device with addpart.\n"
-"Note: You have to specify the device as 'devid', _not_ as '/dev/devid'. This\n"
-"will likely change soon.\n";
+"Usage: delpart <device>\n"
+"Delete partitions previously added to a device with addpart.\n";
U_BOOT_CMD_START(delpart)
.maxargs = 2,