summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/h8/h8make.py
diff options
context:
space:
mode:
author Mike Naberezny <mike@naberezny.com>2015-03-05 15:04:37 -0800
committer Mike Naberezny <mike@naberezny.com>2015-03-05 15:08:01 -0800
commitb73285d6b3eb03ddaa0969d83f20e685890bc042 (patch)
tree30fe0d57a53dc1cc5a64955b466b3bb9cd69975f /src/emu/cpu/h8/h8make.py
parent2dfeced11b186388bab548088730acafdfc05201 (diff)
Send error messages to stderr instead of stdout. (nw)
Diffstat (limited to 'src/emu/cpu/h8/h8make.py')
-rw-r--r--src/emu/cpu/h8/h8make.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/h8/h8make.py b/src/emu/cpu/h8/h8make.py
index 8328ddb56b1..4cd435df373 100644
--- a/src/emu/cpu/h8/h8make.py
+++ b/src/emu/cpu/h8/h8make.py
@@ -15,7 +15,7 @@ def name_to_type(name):
return 2
if name == "s26":
return 3
- print "Unknown chip type name %s" % name
+ sys.stderr.write("Unknown chip type name %s\n" % name)
sys.exit(1)
def type_to_device(dtype):
@@ -96,7 +96,7 @@ class Hash:
if val in self.d:
h = self.d[val]
if h.premask != premask:
- print "Premask conflict"
+ sys.stderr.write("Premask conflict\n")
sys.exit(1)
return h
h = Hash(premask)
@@ -105,7 +105,7 @@ class Hash:
def set(self, val, opc):
if val in self.d:
- print "Collision on %s" % opc.description()
+ sys.stderr.write("Collision on %s\n" % opc.description())
sys.exit(1)
self.d[val] = opc
@@ -331,7 +331,7 @@ class OpcodeList:
if v in h.d:
d = h.d[v]
if not d.is_dispatch():
- print "Collision on %s" % opc.description()
+ sys.stderr.write("Collision on %s\n" % opc.description())
sys.exit(1)
if opc.enabled:
d.enabled = True