[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Drain/tools/java/net/tinyos/drain Drain.java, 1.9, 1.10

Gilman Tolle gtolle at users.sourceforge.net
Wed Aug 3 20:19:07 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Drain/tools/java/net/tinyos/drain
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5975

Modified Files:
	Drain.java 
Log Message:
Added a debugging printout for the buildTree event that shows the tree root address.

Index: Drain.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Drain/tools/java/net/tinyos/drain/Drain.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Drain.java	16 Jul 2005 21:26:35 -0000	1.9
--- Drain.java	4 Aug 2005 03:18:57 -0000	1.10
***************
*** 57,62 ****
      DrainBeaconMsg beaconMsg = new DrainBeaconMsg();
  
-     log.info("buildTree: instance=" + treeInstance + " delay=" + delay + " defaultRoute=" + defaultRoute);
- 
      children.clear();
      children.add(new Integer(0));
--- 57,60 ----
***************
*** 83,86 ****
--- 81,86 ----
        beaconMsg.set_defaultRoute((short)0);
      }
+ 
+     log.info("buildTree: root_address=" + beaconMsg.get_linkSource() + " instance=" + treeInstance + " delay=" + delay + " defaultRoute=" + defaultRoute);
      
      send(beaconMsg);
***************
*** 138,150 ****
      parseArgs(args, drain);
  
-     if (drain.VERBOSE) {
- 	System.err.println("Drain Tree Builder");
- 	System.err.println("myAddr = " + DrainLib.setSPAddr() + 
- 			   ", treeInstance = " + drain.treeInstance + 
- 			   ", delay = " + drain.delay +
- 			   ", count = " + drain.count + 
- 			   ", forever = " + drain.forever);
-     }
- 
      drain.maintainTree();
  
--- 138,141 ----



More information about the Tinyos-beta-commits mailing list