[Bitbake-dev] [PATCH] Fix bb.warn()

Petri Lehtinen petri.lehtinen+bitbake-dev at inoi.fi
Fri Apr 24 09:19:47 CEST 2009


From: Petri Lehtinen <petri.lehtinen at inoi.fi>

bb.msg.warn() takes two required args instead of three (like
bb.msg.note() and bb.msg.debug()).
---

The plain() function a few lines up is also wrong, it passes too few
arguments to bb.msg.warn(). I can't really fix it because I don't know
what its purpose is.

 bitbake/lib/bb/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 594be20..1790f87 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -106,7 +106,7 @@ def note(*args):
     bb.msg.note(1, None, ''.join(args))
 
 def warn(*args):
-    bb.msg.warn(1, None, ''.join(args))
+    bb.msg.warn(None, ''.join(args))
 
 def error(*args):
     bb.msg.error(None, ''.join(args))
-- 
1.6.0.4




More information about the bitbake-devel mailing list