]> code.ossystems Code Review - openembedded-core.git/commitdiff
logger usage cleanup
authorChris Larson <chris_larson@mentor.com>
Fri, 17 Dec 2010 21:46:41 +0000 (14:46 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:53 +0000 (14:46 +0000)
(Bitbake rev: 976e4f84a8147ad762442df7ff4820611a21d227)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/runqueue.py
bitbake/lib/bb/ui/knotty.py

index ee7cfe7d61aaad15a771658c96483b0d1ff0394d..dd568ffab2c973db14094b07ee919fd5e4a650bb 100644 (file)
@@ -914,7 +914,7 @@ class RunQueue:
 
         # 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 cedbe423061cf1f31fe39014637e6fc860c86856..2e9c6f3f225072aff99e7df63ab9acf36f3c2bbf 100644 (file)
@@ -174,7 +174,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