mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1530 (42937238W2qaGubDybmWZrLF-sQjNQ)
console.py, channel.py, XendDomain.py: Remove/disable debug output. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
35a241e01b
commit
6a6931fc64
3 files changed
+4
-5
No files matched your search
@@ -1,4 +1,5 @@
|
||||
# Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
|
||||
# Copyright (C) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
|
||||
|
||||
"""Handler for domain operations.
|
||||
Nothing here is persistent (across reboots).
|
||||
@@ -73,7 +74,6 @@ class XendDomain:
|
||||
def onVirq(self, event, val):
|
||||
"""Event handler for virq.
|
||||
"""
|
||||
print 'onVirq>', val
|
||||
self.refresh(cleanup=True)
|
||||
|
||||
def xen_domains(self):
|
||||
|
||||
@@ -37,7 +37,8 @@ def eventChannelClose(evtchn):
|
||||
pass
|
||||
|
||||
if not evtchn: return
|
||||
print 'eventChannelClose>', evtchn
|
||||
if DEBUG:
|
||||
print 'eventChannelClose>', evtchn
|
||||
evtchn_close(evtchn.get('dom1'), evtchn.get('port1'))
|
||||
evtchn_close(evtchn.get('dom2'), evtchn.get('port2'))
|
||||
|
||||
@@ -133,7 +134,7 @@ class ChannelFactory:
|
||||
self.virqHandler = virqHandler
|
||||
|
||||
def virqReceived(self, virq):
|
||||
if 1 or DEBUG:
|
||||
if DEBUG:
|
||||
print 'virqReceived>', virq
|
||||
if not self.virqHandler: return
|
||||
self.runInThread(lambda virq=virq: self.virqHandler(virq))
|
||||
|
||||
@@ -174,7 +174,6 @@ class ConsoleDev(Dev, protocol.ServerFactory):
|
||||
def destroy(self, change=False, reboot=False):
|
||||
"""Close the console.
|
||||
"""
|
||||
print 'ConsoleDev>destroy>', self, reboot
|
||||
if reboot:
|
||||
return
|
||||
try:
|
||||
@@ -357,7 +356,6 @@ class ConsoleController(DevController):
|
||||
self.rebootDevices()
|
||||
|
||||
def destroyController(self, reboot=False):
|
||||
print 'ConsoleController>destroyController>', self, reboot
|
||||
self.destroyed = True
|
||||
self.destroyDevices(reboot=reboot)
|
||||
self.rcvr.deregisterChannel()
|
||||
|
||||