Skip to contentSkip to conversation

gcc-common.inc: String format tweak for available tunes

PATCH New noel eck 1 participant 1 message Apr 11, 2016

lore
Share & tools
lore

noel eck

author
#0 lore raw

PATCH 1/1 gcc-common.inc: String format tweak for available tunes

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.

---
 meta/recipes-devtools/gcc/gcc-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-common.inc +1 -1
index 6f2f224..e4fd4d6 100644
@@ -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
Signature · 1 line
2.5.0