]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
logger usage cleanup
authorChris Larson <chris_larson@mentor.com>
Fri, 17 Dec 2010 21:46:41 +0000 (14:46 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 17 Dec 2010 21:47:27 +0000 (14:47 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/build.py
lib/bb/runqueue.py
lib/bb/ui/knotty.py

index 6a796ba3bcf7de60b39dfa92c6c976178cb5a522..e4153269d84949db91298d20ba2f90b158c4ff24 100644 (file)
@@ -127,7 +127,7 @@ def exec_func(func, d, dirs = None, logfile = NULL):
 
     body = data.getVar(func, d)
     if not body:
-        logger.warn("Function %s doesn't exist" % func)
+        logger.warn("Function %s doesn't exist", func)
         return
 
     flags = data.getVarFlags(func, d)
index 3dc2051d026dc5a59933443d5cd3bd1a1e5691f5..322be22eca05854b9146dd18bfb9d5b0370beb85 100644 (file)
@@ -830,7 +830,7 @@ class RunQueue:
         stampfile = "%s.%s" % (self.rqdata.dataCache.stamp[fn], taskname)
         # If the stamp is missing its not current
         if not os.access(stampfile, os.F_OK):
-            logger.debug(2, "Stampfile %s not available\n", stampfile)
+            logger.debug(2, "Stampfile %s not available", stampfile)
             return False
         # If its a 'nostamp' task, it's not current
         taskdep = self.rqdata.dataCache.task_deps[fn]
index 29c71aef2991c9dd25d5860de200a96fa3f0c5ce..0735f25dc845a84b187ff50b79a163ab4398db45 100644 (file)
@@ -169,7 +169,7 @@ def main(server, eventHandler):
                 break
             if isinstance(event, bb.command.CommandFailed):
                 return_value = event.exitcode
-                logger.error("Command execution failed: %s" % event.error)
+                logger.error("Command execution failed: %s", event.error)
                 break
             if isinstance(event, bb.command.CommandExit):
                 return_value = event.exitcode