summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/lib/bb/msg.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake-dev/lib/bb/msg.py')
-rw-r--r--bitbake-dev/lib/bb/msg.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake-dev/lib/bb/msg.py b/bitbake-dev/lib/bb/msg.py
index 7990833c2e..3fcf7091be 100644
--- a/bitbake-dev/lib/bb/msg.py
+++ b/bitbake-dev/lib/bb/msg.py
@@ -47,9 +47,9 @@ domain = bb.utils.Enum(
47class MsgBase(bb.event.Event): 47class MsgBase(bb.event.Event):
48 """Base class for messages""" 48 """Base class for messages"""
49 49
50 def __init__(self, msg, d ): 50 def __init__(self, msg):
51 self._message = msg 51 self._message = msg
52 event.Event.__init__(self, d) 52 event.Event.__init__(self)
53 53
54class MsgDebug(MsgBase): 54class MsgDebug(MsgBase):
55 """Debug Message""" 55 """Debug Message"""
@@ -100,26 +100,26 @@ def debug(level, domain, msg, fn = None):
100 if not domain: 100 if not domain:
101 domain = 'default' 101 domain = 'default'
102 if debug_level[domain] >= level: 102 if debug_level[domain] >= level:
103 bb.event.fire(MsgDebug(msg, None)) 103 bb.event.fire(MsgDebug(msg), None)
104 104
105def note(level, domain, msg, fn = None): 105def note(level, domain, msg, fn = None):
106 if not domain: 106 if not domain:
107 domain = 'default' 107 domain = 'default'
108 if level == 1 or verbose or debug_level[domain] >= 1: 108 if level == 1 or verbose or debug_level[domain] >= 1:
109 bb.event.fire(MsgNote(msg, None)) 109 bb.event.fire(MsgNote(msg), None)
110 110
111def warn(domain, msg, fn = None): 111def warn(domain, msg, fn = None):
112 bb.event.fire(MsgWarn(msg, None)) 112 bb.event.fire(MsgWarn(msg), None)
113 113
114def error(domain, msg, fn = None): 114def error(domain, msg, fn = None):
115 bb.event.fire(MsgError(msg, None)) 115 bb.event.fire(MsgError(msg), None)
116 print 'ERROR: ' + msg 116 print 'ERROR: ' + msg
117 117
118def fatal(domain, msg, fn = None): 118def fatal(domain, msg, fn = None):
119 bb.event.fire(MsgFatal(msg, None)) 119 bb.event.fire(MsgFatal(msg), None)
120 print 'FATAL: ' + msg 120 print 'FATAL: ' + msg
121 sys.exit(1) 121 sys.exit(1)
122 122
123def plain(msg, fn = None): 123def plain(msg, fn = None):
124 bb.event.fire(MsgPlain(msg, None)) 124 bb.event.fire(MsgPlain(msg), None)
125 125