summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/usage/blkmap.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/usage/blkmap.rst b/doc/usage/blkmap.rst
index 7337ea507a1..75f736c259f 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}`: