diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-05 10:17:10 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:55:39 +0100 |
commit | 2cae0473971ff3983c7e423c23215b342c7dad1d (patch) | |
tree | 466278f5a62ea9fba83c037c669a283a3dc6f721 /scripts | |
parent | 4bfe81a88653f4851ec24eef9e5ee51960cb101b (diff) | |
download | openembedded-core-2cae0473971ff3983c7e423c23215b342c7dad1d.tar.gz openembedded-core-2cae0473971ff3983c7e423c23215b342c7dad1d.tar.bz2 openembedded-core-2cae0473971ff3983c7e423c23215b342c7dad1d.zip |
wic: Fix format string
wic crashes with "TypeError: %d format: a number is required, not str"
Due to incorrect format used for Wic_PartData.extra_size attribute.
Using %s instead of %d should fix the crash.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index f3c5545789..40c2772914 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -71,7 +71,7 @@ class Wic_PartData(Mic_PartData): retval += " --no-table" if self.use_uuid: retval += " --use-uuid" - retval += " --extra-space=%d" % self.extra_space + retval += " --extra-space=%s" % self.extra_space retval += " --overhead-factor=%f" % self.overhead_factor return retval |