diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2020-06-12 16:50:16 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-06 14:15:22 +0100 |
| commit | 3c4f891402a4a271bc5d7b5c0f50ee85ba74f984 (patch) | |
| tree | 0d4500e84cd81a011eab8b2dd44695d465ecb6bb /scripts/lib/wic/plugins | |
| parent | c52e34c2bfd20df3448d8b8cfe938935905c2bf0 (diff) | |
| download | poky-3c4f891402a4a271bc5d7b5c0f50ee85ba74f984.tar.gz | |
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: 0ff25797126772f40e357a2f3cf81eccf659adaf)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2be775cfe1b49ce3889b5dc326e2b67a9667f18a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
| -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(): | |||
| 436 | 436 | ||
| 437 | delta = offset - self.offset | 437 | delta = offset - self.offset |
| 438 | if delta < 0: | 438 | if delta < 0: |
| 439 | 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)) | 439 | 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)) |
| 440 | 440 | ||
| 441 | logger.debug("Skipping %d sectors to place %s%s at offset %dK", | 441 | logger.debug("Skipping %d sectors to place %s%s at offset %dK", |
| 442 | delta, part.disk, self.numpart, part.offset) | 442 | delta, part.disk, self.numpart, part.offset) |
