Fixed a variable that was incorrect during the calculation of fileblks.

Signed-off-by: Ken Kurematsu <[email protected]>
---
 doc/usage/blkmap.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/usage/blkmap.rst b/doc/usage/blkmap.rst
index 7337ea507a..75f736c259 100644
--- a/doc/usage/blkmap.rst
+++ b/doc/usage/blkmap.rst
@@ -54,7 +54,7 @@ downloaded file, in blocks:
 ::
 
    setexpr fileblks ${filesize} + 0x1ff
-   setexpr fileblks ${filesize} / 0x200
+   setexpr fileblks ${fileblks} / 0x200
 
 Then we can add a mapping to the start of our device, backed by the
 memory at `${loadaddr}`:
-- 
2.34.1

Reply via email to