From a4ffe3aa5fb97860abe777b2440ba22b6986ca28 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Thu, 7 Dec 2017 12:23:24 +0100 Subject: [PATCH] fix: typos --- extract-partitions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract-partitions.py b/extract-partitions.py index 9e6637d..328f2b5 100755 --- a/extract-partitions.py +++ b/extract-partitions.py @@ -25,8 +25,8 @@ parser.add_argument("--skip-hello", action="store_true", def dump_partitions(comm, disk_fd, outdir, max_size): diskinfo = partitions.get_partitions(comm, disk_fd) for part in diskinfo.gpt.partitions: - part_offset = part.first_bla * partitions.BLOCK_SIZE - part_size = (part.last_lba - part.first_bla) * partitions.BLOCK_SIZE + part_offset = part.first_lba * partitions.BLOCK_SIZE + part_size = (part.last_lba - part.first_lba) * partitions.BLOCK_SIZE part_name = part.name part_label = "/dev/mmcblk0p%i" % part.index if max_size and part_size > max_size: