[sheepdog] [PATCH v1 2/2] sheep/cluster: change output format in sheep log
Robin Dong
robin.k.dong at gmail.com
Fri Feb 28 07:47:53 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 1fa36ee..de5840e 100644
--- a/sheep/cluster/zookeeper.c
+++ b/sheep/cluster/zookeeper.c
@@ -1349,7 +1349,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