summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/kickstart/custom_commands/partition.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-05 10:17:10 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:55:39 +0100
commit2cae0473971ff3983c7e423c23215b342c7dad1d (patch)
tree466278f5a62ea9fba83c037c669a283a3dc6f721 /scripts/lib/wic/kickstart/custom_commands/partition.py
parent4bfe81a88653f4851ec24eef9e5ee51960cb101b (diff)
downloadopenembedded-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/lib/wic/kickstart/custom_commands/partition.py')
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/partition.py2
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