[PATCH] doc:fix typo in 'mmc write' example

Simon Glass sjg at chromium.org
Wed Apr 19 03:45:38 CEST 2023


On Sun, 9 Apr 2023 at 07:01, Alexander Shirokov <shirokovalexs at gmail.com> wrote:
>
> In the 'mmc write' command example, it writes 16 blocks (0x10). But the
> output contains 256 (0x100) blocks. This patch fixes the mismatch.
>
> Signed-off-by: Alexander Shirokov <shirokovalexs at gmail.com>
> ---
>  doc/usage/cmd/mmc.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/doc/usage/cmd/mmc.rst b/doc/usage/cmd/mmc.rst
> index 55e3f9cf98..41005b18ef 100644
> --- a/doc/usage/cmd/mmc.rst
> +++ b/doc/usage/cmd/mmc.rst
> @@ -216,7 +216,7 @@ The raw data can be read/written via 'mmc read/write' command:
>      => mmc read 0x40000000 0x5000 0x100
>      MMC read: dev # 0, block # 20480, count 256 ... 256 blocks read: OK
>
> -    => mmc write 0x40000000 0x5000 0x10
> +    => mmc write 0x40000000 0x5000 0x100
>      MMC write: dev # 0, block # 20480, count 256 ... 256 blocks written: OK

Could we drop the 0x as well? Those are not needed and may confuse people.

>
>  The partition list can be shown via 'mmc part' command:
> --
> 2.40.0
>

Regards,
Simon


More information about the U-Boot mailing list