direct-io.hg

changeset 1779:f48283c49033

bitkeeper revision 1.1081 (40f51d11qw-VHbZ26xKNy0xc6ylgiQ)

Quieten down debug prints.
author mjw@wray-m-3.hpl.hp.com
date Wed Jul 14 11:46:25 2004 +0000 (2004-07-14)
parents e4a326567073
children 3bca70370d6e 9a1d945b5038
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Wed Jul 14 10:40:26 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Wed Jul 14 11:46:25 2004 +0000
     1.3 @@ -60,7 +60,6 @@ class XendDomain:
     1.4      def onVirq(self, event, val):
     1.5          """Event handler for virq.
     1.6          """
     1.7 -        print 'XendDomain> virq', val
     1.8          self.reap()
     1.9  
    1.10      def schedule_later(self, _delay, _name, _fn, *args):
    1.11 @@ -131,9 +130,9 @@ class XendDomain:
    1.12      def initial_refresh(self):
    1.13          """Refresh initial domain info from domain_db.
    1.14          """
    1.15 -        for d in self.domain_db.values(): print 'db dom=', d
    1.16 +        #for d in self.domain_db.values(): print 'db dom=', d
    1.17          domlist = xc.domain_getinfo()
    1.18 -        for d in domlist: print 'xc dom=', d
    1.19 +        #for d in domlist: print 'xc dom=', d
    1.20          doms = {}
    1.21          for d in domlist:
    1.22              domid = str(d['dom'])
    1.23 @@ -141,21 +140,21 @@ class XendDomain:
    1.24          dlist = []
    1.25          for config in self.domain_db.values():
    1.26              domid = str(sxp.child_value(config, 'id'))
    1.27 -            print "dom=", domid, "config=", config
    1.28 +            #print "dom=", domid, "config=", config
    1.29              if domid in doms:
    1.30 -                print "dom=", domid, "new"
    1.31 +                #print "dom=", domid, "new"
    1.32                  deferred = self._new_domain(config, doms[domid])
    1.33                  dlist.append(deferred)
    1.34              else:
    1.35 -                print "dom=", domid, "del"
    1.36 +                #print "dom=", domid, "del"
    1.37                  self._delete_domain(domid)
    1.38          deferred = defer.DeferredList(dlist, fireOnOneErrback=1)
    1.39          def cbok(val):
    1.40              #print "doms:"
    1.41              #for d in self.domain.values(): print 'dom', d
    1.42              self.refresh()
    1.43 -            print "XendDomain>initial_refresh> doms:"
    1.44 -            for d in self.domain.values(): print 'dom', d
    1.45 +            #print "XendDomain>initial_refresh> doms:"
    1.46 +            #for d in self.domain.values(): print 'dom', d
    1.47          deferred.addCallback(cbok)
    1.48  
    1.49      def sync(self):
    1.50 @@ -242,7 +241,6 @@ class XendDomain:
    1.51          """Refresh domain list from Xen.
    1.52          """
    1.53          self.refresh_cancel()
    1.54 -        print 'XendDomain>refresh>'
    1.55          domlist = xc.domain_getinfo()
    1.56          # Index the domlist by id.
    1.57          # Add entries for any domains we don't know about.
    1.58 @@ -409,11 +407,9 @@ class XendDomain:
    1.59          @param id:     domain id
    1.60          @param reason: shutdown reason
    1.61          """
    1.62 -        print 'domain_restart_schedule>', id, reason
    1.63          dominfo = self.domain.get(id)
    1.64          if not dominfo or id in self.restarts:
    1.65              # Don't schedule if unknown or already there.
    1.66 -            print 'domain_restart_schedule> no domain'
    1.67              return
    1.68          restart = ((reason == 'reboot') or
    1.69                     (reason == 'poweroff' and dominfo.autorestart))
    1.70 @@ -429,7 +425,6 @@ class XendDomain:
    1.71  
    1.72          @param id: domain id
    1.73          """
    1.74 -        print 'domain_restart_cancel>', id
    1.75          dominfo = self.domain.get(id)
    1.76          if dominfo:
    1.77              dominfo.autorestart = 0
    1.78 @@ -439,11 +434,9 @@ class XendDomain:
    1.79      def domain_restarts(self):
    1.80          """Execute any scheduled domain restarts for domains that have gone.
    1.81          """
    1.82 -        print 'domain_restarts>'
    1.83          self.domain_restarts_cancel()
    1.84          for id in self.restarts.keys():
    1.85              if id in self.domain:
    1.86 -                print 'domain_restarts> still running:', id
    1.87                  # Don't execute restart for domains still running.
    1.88                  continue
    1.89              config = self.restarts[id]