aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-11-26 15:20:26 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-12-24 17:02:23 +0100
commit528b6b817e9d22dc5cd6f23e4135355e5179f084 (patch)
tree723428e340cfbe535d1647b8b3a3013e4534c55c
parentf920257ac295087c55033407733e53961da36c29 (diff)
downloadu-boot-528b6b817e9d22dc5cd6f23e4135355e5179f084.zip
u-boot-528b6b817e9d22dc5cd6f23e4135355e5179f084.tar.gz
u-boot-528b6b817e9d22dc5cd6f23e4135355e5179f084.tar.bz2
cmd/rng: fix long help text
The number of bytes may only be specified if a device number id provided. Correct the formatting. Acked-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--cmd/rng.c4
-rw-r--r--doc/usage/cmd/rng.rst4
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/rng.c b/cmd/rng.c
index 2fb7202..4d91094 100644
--- a/cmd/rng.c
+++ b/cmd/rng.c
@@ -75,6 +75,6 @@ static int do_rng(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
U_BOOT_CMD(
rng, 3, 0, do_rng,
"print bytes from the hardware random number generator",
- "list - list all the probed rng devices\n"
- "rng [dev] [n] - print n random bytes(max 64) read from dev\n"
+ "list - list all probed rng devices\n"
+ "rng [dev [n]] - print n random bytes (max 64) read from dev\n"
);
diff --git a/doc/usage/cmd/rng.rst b/doc/usage/cmd/rng.rst
index 4a61e33..c071f01 100644
--- a/doc/usage/cmd/rng.rst
+++ b/doc/usage/cmd/rng.rst
@@ -12,14 +12,14 @@ Synopsis
::
rng list
- rng [dev] [n]
+ rng [dev [n]]
rng list
--------
List all the probed rng devices.
-rng [dev] [n]
+rng [dev [n]]
-------------
The *rng* command reads the random number generator(RNG) device and