hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r901951 - in /hadoop/zookeeper/trunk: CHANGES.txt src/java/main/org/apache/zookeeper/ZooKeeperMain.java
Date Fri, 22 Jan 2010 00:49:23 GMT
Author: mahadev
Date: Fri Jan 22 00:49:22 2010
New Revision: 901951

URL: http://svn.apache.org/viewvc?rev=901951&view=rev
Log:
ZOOKEEPER-626. ensure the c/java cli's print xid/sessionid/etc... in hex (pat via mahadev)

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=901951&r1=901950&r2=901951&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Fri Jan 22 00:49:22 2010
@@ -242,6 +242,8 @@
 
   ZOOKEEPER-648. Fix releaseaudit warning count to zero (phunt via henry)
 
+  ZOOKEEPER-626. ensure the c/java cli's print xid/sessionid/etc... in hex (pat via mahadev)
+
 NEW FEATURES:
   ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)
 

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java?rev=901951&r1=901950&r2=901951&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java Fri Jan 22
00:49:22 2010
@@ -127,15 +127,16 @@
     }
 
     private static void printStat(Stat stat) {
-        System.err.println("cZxid = " + stat.getCzxid());
+        System.err.println("cZxid = 0x" + Long.toHexString(stat.getCzxid()));
         System.err.println("ctime = " + new Date(stat.getCtime()).toString());
-        System.err.println("mZxid = " + stat.getMzxid());
+        System.err.println("mZxid = 0x" + Long.toHexString(stat.getMzxid()));
         System.err.println("mtime = " + new Date(stat.getMtime()).toString());
-        System.err.println("pZxid = " + stat.getPzxid());
+        System.err.println("pZxid = 0x" + Long.toHexString(stat.getPzxid()));
         System.err.println("cversion = " + stat.getCversion());
         System.err.println("dataVersion = " + stat.getVersion());
         System.err.println("aclVersion = " + stat.getAversion());
-        System.err.println("ephemeralOwner = " + stat.getEphemeralOwner());
+        System.err.println("ephemeralOwner = 0x"
+        		+ Long.toHexString(stat.getEphemeralOwner()));
         System.err.println("dataLength = " + stat.getDataLength());
         System.err.println("numChildren = " + stat.getNumChildren());
     }



Mime
View raw message