Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61B92C77B61 for ; Thu, 27 Apr 2023 10:12:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2EB9E86369; Thu, 27 Apr 2023 12:12:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H0jSkgJ3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 522F98636C; Thu, 27 Apr 2023 12:12:23 +0200 (CEST) Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2FD3F858F1 for ; Thu, 27 Apr 2023 12:12:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=shirokovalexs@gmail.com Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2a8ba5f1d6bso80138501fa.2 for ; Thu, 27 Apr 2023 03:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682590340; x=1685182340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zdfIiHyvy3XUF04CNwZvQraHa9wjkkDRVcvCLR4fYQU=; b=H0jSkgJ3IwQBvCdToVj6eL3T44TOK3XpbSiUnFxU1Mlt8DxOKsHmc9ZEyGRvd46pB/ 3zz3rcR1LMzzHZFZTFk94t9kyHOcQvWbr+JZXS0Iv6aq1wFjEXzlhpZinHI2lzcvcx/I wG1wWFasOk9fngtwjCa6nRtZF34F5rRVHlbv1UTXCN5oogd/wlzgomF8gGOttGwYCPCS KTeubD8eidSAEO6FVIpE+0Trx2xHXBdVcYLvE3aF4Hh2POMtR+m03abdUvyBzwIvmvQG S03Htw5NlgYbWt1WV6ozmh6DrR8fk7B1TSiOErKm6cCYn7RoExf/FNoV//cNKLgk7DaG M7xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682590340; x=1685182340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zdfIiHyvy3XUF04CNwZvQraHa9wjkkDRVcvCLR4fYQU=; b=LnP+8WUeOPE0SqPbsqSnKxDpEv8Y8Jjez57iRzW/GZTWN3gzkQIYMfy7T6axexOrHe e8dlVSF0If/AsZfiiML2mcWvxwe2z+lSHsRoq9wjKKGQzW+WcvINarqm5PYRWlm0BFYo s3dDO7LYWWdmLjZLACVVs9QkTW+7YGLavWvDOH7uX0c+5QuF1xzAdE5uEH1pp5h8695H TEYLyIKBBZSTS4/14O3CHH1CpQNecxue0v1B1WY/adbbbhL+PgsrHNGHbhm9UMBKOgPf iPwKTctsYK74LYgH1kuUbGqavpScwtrYE+M3LmrkFWXUOclqAJ2yGVnjqHfkpAKxIV4R 0mMw== X-Gm-Message-State: AC+VfDyoQWjY3ONtY7yfdMlRa3MwXzyrFYrN1Q0aUjzeWm6HPihxRrRH mSSI2UAYfVJN24hHn1QTp0njUc0bI3/zCkg= X-Google-Smtp-Source: ACHHUZ7TTx8VtQIRxj2Gi+D8Jzhm9yz+K9qTEoFkb3iRUwZW0eNYPXqAzUVO3ymXGCT9LlBUxAA/Nw== X-Received: by 2002:a2e:9bd7:0:b0:2a7:a5f7:9651 with SMTP id w23-20020a2e9bd7000000b002a7a5f79651mr547786ljj.23.1682590339707; Thu, 27 Apr 2023 03:12:19 -0700 (PDT) Received: from localhost.localdomain (89-64-0-253.dynamic.chello.pl. [89.64.0.253]) by smtp.gmail.com with ESMTPSA id f2-20020ac251a2000000b004e9b4a8f738sm2847217lfk.152.2023.04.27.03.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 03:12:19 -0700 (PDT) From: Alexander Shirokov To: u-boot@lists.denx.de Cc: Alexander Shirokov Subject: [PATCH v3] doc:mmc:drop 0x prefixes in read/write examples Date: Thu, 27 Apr 2023 12:12:07 +0200 Message-Id: <20230427101207.119814-1-shirokovalexs@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230425100030.22403-1-shirokovalexs@gmail.com> References: <20230425100030.22403-1-shirokovalexs@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The patch drops 0x prefixes because all numbers are interpreted as HEX by default. Also, it fixes the mismatch between input arguments and output at 'mmc write' example. Now it's 256 (0x100) blocks. Signed-off-by: Alexander Shirokov --- doc/usage/cmd/mmc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage/cmd/mmc.rst b/doc/usage/cmd/mmc.rst index 55e3f9cf98..71a0303109 100644 --- a/doc/usage/cmd/mmc.rst +++ b/doc/usage/cmd/mmc.rst @@ -213,10 +213,10 @@ The 'mmc info' command displays device's capabilities: The raw data can be read/written via 'mmc read/write' command: :: - => mmc read 0x40000000 0x5000 0x100 + => mmc read 40000000 5000 100 MMC read: dev # 0, block # 20480, count 256 ... 256 blocks read: OK - => mmc write 0x40000000 0x5000 0x10 + => mmc write 40000000 5000 100 MMC write: dev # 0, block # 20480, count 256 ... 256 blocks written: OK The partition list can be shown via 'mmc part' command: -- 2.40.1