From: Heinrich Schuchardt Date: Tue, 26 Nov 2024 14:20:26 +0000 (+0100) Subject: cmd/rng: fix long help text X-Git-Url: http://git.dujemihanovic.xyz/img/%22http:/www.sics.se/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=528b6b817e9d22dc5cd6f23e4135355e5179f084;p=u-boot.git 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 Signed-off-by: Heinrich Schuchardt --- diff --git a/cmd/rng.c b/cmd/rng.c index 2fb7202303..4d91094a8e 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 4a61e33d27..c071f01e84 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