[Tinyos-commits] CVS: tinyos-1.x/tools/java/net/tinyos/deluge Rebooter.java, 1.5, 1.6

Jonathan Hui jwhui at users.sourceforge.net
Sat Aug 27 17:28:36 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/deluge
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26391

Modified Files:
	Rebooter.java 
Log Message:
- Better output.



Index: Rebooter.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/deluge/Rebooter.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Rebooter.java	28 Aug 2005 00:17:12 -0000	1.5
--- Rebooter.java	28 Aug 2005 00:28:34 -0000	1.6
***************
*** 89,94 ****
      TOSBootImage image = newImage;
      System.out.println("  To Image: " + pingReply.get_imgDesc_imgNum());
!     if ( pingReply.get_imgDesc_numPgs() != 0 ) {
!       System.out.println(image);
        /*
  	if ( pinger.getExecName().compareTo( newImage.getName() ) == 0 &&
--- 89,93 ----
      TOSBootImage image = newImage;
      System.out.println("  To Image: " + pingReply.get_imgDesc_imgNum());
!       
        /*
  	if ( pinger.getExecName().compareTo( newImage.getName() ) == 0 &&
***************
*** 97,102 ****
  	throw new IllegalArgumentException( "already executing image" );
        */
      }
!     else {
        System.out.println("    Golden Image.");
        System.out.println();
--- 96,104 ----
  	throw new IllegalArgumentException( "already executing image" );
        */
+ 
+     if ( pingReply.get_imgDesc_numPgs != 0 ) {
+       System.out.println(image);
      }
!     else if ( pingReply.get_imgDesc_imgNum() == 0 ) {
        System.out.println("    Golden Image.");
        System.out.println();



More information about the Tinyos-commits mailing list