From 4a6d4d258c0a7210462be8cd025475cfe9bf8d84 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 17 Dec 2010 14:46:41 -0700 Subject: logger usage cleanup (Bitbake rev: 976e4f84a8147ad762442df7ff4820611a21d227) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 2 +- bitbake/lib/bb/ui/knotty.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index ee7cfe7d61..dd568ffab2 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -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] diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index cedbe42306..2e9c6f3f22 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -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 -- cgit v1.2.3