[sheepdog] [PATCH v2 2/2] sheep/cluster: change output format in sheep log

Robin Dong robin.k.dong at gmail.com
Mon Mar 3 09:02:35 CET 2014


From: Robin Dong <sanbai at taobao.com>

We have print debug information for 'lock_id' in octal when calling
zk_lock(), so is the zk_unlock().

Signed-off-by: Robin Dong <sanbai at taobao.com>
---
 sheep/cluster/zookeeper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheep/cluster/zookeeper.c b/sheep/cluster/zookeeper.c
index 8cdcf84..3a72cb3 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -1348,7 +1348,7 @@ create_seq_node:
 static void zk_unlock(uint64_t lock_id)
 {
 	lock_table_lookup_release(lock_id);
-	sd_debug("unlock %"PRIx64, lock_id);
+	sd_debug("unlock %"PRIu64, lock_id);
 }
 
 static int zk_init(const char *option)
-- 
1.7.12.4




More information about the sheepdog mailing list