]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-common.inc: String format tweak for available tunes
authornoel eck <kceleon@gmail.com>
Mon, 11 Apr 2016 21:44:05 +0000 (14:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Apr 2016 09:58:28 +0000 (10:58 +0100)
Small change to python string formatting for error logging.
Previously, tune and availtunes would print out at the end of
the log message.  This change allows them to print out in the
correct locations of the error string.

Signed-off-by: noel eck <kceleon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-common.inc

index 6f2f224a14171db9b6a16e330a1ca158d87dfc01..e4fd4d6f70f8d7ee0b81a63cdb9f05c2c7bef62b 100644 (file)
@@ -54,7 +54,7 @@ def get_gcc_multiarch_setting(bb, d):
 def get_tune_parameters(tune, d):
     availtunes = d.getVar('AVAILTUNES', True)
     if tune not in availtunes.split():
-        bb.error('The tune: %s is not one of the available tunes: %s', tune or None, availtunes)
+        bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes))
 
     localdata = bb.data.createCopy(d)
     override = ':tune-' + tune