Skip to contentSkip to conversation

siggen: Correct format argument substitution

PATCH New Mike Crowe 1 participant 1 message Nov 5, 2018

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 siggen: Correct format argument substitution

Use % operator to ensure that the dependency is substituted into the error message correctly.

---
 lib/bb/siggen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/siggen.py +1 -1
index 03c824ec..c619b596 100644
@@ -185,7 +185,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
             if not self.rundep_check(fn, recipename, task, dep, depname, dataCache):
                 continue
             if dep not in self.taskhash:
-                bb.fatal("%s is not in taskhash, caller isn't calling in dependency order?", dep)
+                bb.fatal("%s is not in taskhash, caller isn't calling in dependency order?" % dep)
             data = data + self.taskhash[dep]
             self.runtaskdeps[k].append(dep)
 
Signature · 1 line
2.11.0