]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/rng: fix long help text
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 26 Nov 2024 14:20:26 +0000 (15:20 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 24 Dec 2024 16:02:23 +0000 (17:02 +0100)
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>
cmd/rng.c
doc/usage/cmd/rng.rst

index 2fb7202303acd04af16b8c8f288f0d695351094d..4d91094a8ec7bdba4f21f5fc0ad0259f02eb0f7d 100644 (file)
--- 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"
 );
index 4a61e33d272642d6a6d7d1206bf5fdf06fee6f4b..c071f01e841f1df85c5adccd7ac67df53d623450 100644 (file)
@@ -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