diff options
Diffstat (limited to 'bitbake-dev/lib/bb/msg.py')
-rw-r--r-- | bitbake-dev/lib/bb/msg.py | 16 |
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( | |||
47 | class MsgBase(bb.event.Event): | 47 | class 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 | ||
54 | class MsgDebug(MsgBase): | 54 | class 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 | ||
105 | def note(level, domain, msg, fn = None): | 105 | def 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 | ||
111 | def warn(domain, msg, fn = None): | 111 | def warn(domain, msg, fn = None): |
112 | bb.event.fire(MsgWarn(msg, None)) | 112 | bb.event.fire(MsgWarn(msg), None) |
113 | 113 | ||
114 | def error(domain, msg, fn = None): | 114 | def 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 | ||
118 | def fatal(domain, msg, fn = None): | 118 | def 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 | ||
123 | def plain(msg, fn = None): | 123 | def plain(msg, fn = None): |
124 | bb.event.fire(MsgPlain(msg, None)) | 124 | bb.event.fire(MsgPlain(msg), None) |
125 | 125 | ||