[oe-commits] [openembedded-core] 14/23: gcc-common.inc: String format tweak for available tunes
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 13 23:00:20 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 6d2471193f82419d01f7ad7a7e94df160f6fb715
Author: noel eck <kceleon at gmail.com>
AuthorDate: Mon Apr 11 14:44:05 2016 -0700
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.
Signed-off-by: noel eck <kceleon at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-devtools/gcc/gcc-common.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 6f2f224..e4fd4d6 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list