Skip to content

Commit 9e98329

Browse files
committed
src/addlayouttable.py: Print total size of each section.
Signed-off-by: Damien George <damien@micropython.org>
1 parent d66bf2c commit 9e98329

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/addlayouttable.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ def main():
228228

229229
# Print information.
230230
if args.output is not sys.stdout:
231-
fmt = "{:13} 0x{:05x}..0x{:05x}"
232-
print(fmt.format("SoftDevice", sd_start, sd_end))
233-
print(fmt.format("MicroPython", mp_start, mp_end))
234-
print(fmt.format("Layout table", layout_addr, layout_addr + len(layout.data)))
235-
print(fmt.format("Filesystem", fs_start, fs_end))
231+
fmt = "{:13} 0x{:05x}..0x{:05x} {:6} bytes"
232+
print(fmt.format("SoftDevice", sd_start, sd_end, sd_end - sd_start))
233+
print(fmt.format("MicroPython", mp_start, mp_end, mp_end - mp_start))
234+
print(fmt.format("Layout table", layout_addr, layout_addr + len(layout.data), len(layout.data)))
235+
print(fmt.format("Filesystem", fs_start, fs_end, fs_end - fs_start))
236236

237237
# Output the new firmware as a hex file.
238238
output_firmware(args.output, firmware, layout_addr, layout.data)

0 commit comments

Comments
 (0)