diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-17 14:46:41 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-17 14:47:27 -0700 |
commit | 976e4f84a8147ad762442df7ff4820611a21d227 (patch) | |
tree | 1b44c9f33e424f77974b3e4a4b6ef0cd567e4f52 | |
parent | 2b07525d80f5d635e7bdcd4a9b1b93a3b834f7ce (diff) | |
download | bitbake-976e4f84a8147ad762442df7ff4820611a21d227.tar.gz |
logger usage cleanup
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/build.py | 2 | ||||
-rw-r--r-- | lib/bb/runqueue.py | 2 | ||||
-rw-r--r-- | lib/bb/ui/knotty.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index 6a796ba3b..e4153269d 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -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) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 3dc2051d0..322be22ec 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -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] diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 29c71aef2..0735f25dc 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -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 |