diff options
author | 2020-06-12 16:50:16 -0500 | |
---|---|---|
committer | 2020-06-16 23:39:28 +0100 | |
commit | 5c82d30dc14ac5f47b3297cf80db7a420536e522 (patch) | |
tree | 3d10ed31aa5af01237dc39edcf792905a28fe05c /scripts | |
parent | 2c7dcad9b75174758c00b2fbcf193bc22b67e397 (diff) | |
download | poky-5c82d30dc14ac5f47b3297cf80db7a420536e522.tar.gz poky-5c82d30dc14ac5f47b3297cf80db7a420536e522.tar.bz2 poky-5c82d30dc14ac5f47b3297cf80db7a420536e522.zip |
wic: Fix error message when reporting invalid offset
The error message was reporting the calculated offset instead of the
current offset, which made it confusing.
(From OE-Core rev: 2be775cfe1b49ce3889b5dc326e2b67a9667f18a)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 1f65a7afe5..2f01999405 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py @@ -436,7 +436,7 @@ class PartitionedImage(): delta = offset - self.offset if delta < 0: - raise WicError("Could not place %s%s at offset %dK: next free sector is %d (delta: %d)" % (part.disk, self.numpart, part.offset, offset, delta)) + raise WicError("Could not place %s%s at offset %dK: next free sector is %d (delta: %d)" % (part.disk, self.numpart, part.offset, self.offset, delta)) logger.debug("Skipping %d sectors to place %s%s at offset %dK", delta, part.disk, self.numpart, part.offset) |