From 11be645bb84ade2c5c9f42baec5ca6c6d1dc1d2c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 14 Mar 2012 15:10:48 +0530 Subject: dict: add a dict_dump() function to dump the dictionary contents helps for debugging some functionalities where we have to understand what we send from one end point to another is properly received on the other endpoint without any errors. Change-Id: I9b802f12ae542e499161a1f3b9a5602f7b93b0ee Signed-off-by: Amar Tumballi BUG: 782265 Reviewed-on: http://review.gluster.com/2959 Reviewed-by: Jeff Darcy Reviewed-by: Raghavendra Bhat Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/dict.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/dict.h') diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index 8e81e539..68579ad7 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -237,4 +237,7 @@ GF_MUST_CHECK int dict_get_str (dict_t *this, char *key, char **str); GF_MUST_CHECK int dict_get_str_boolean (dict_t *this, char *key, int default_val); GF_MUST_CHECK int dict_serialize_value_with_delim (dict_t *this, char *buf, int32_t *serz_len, char delimiter); + +void dict_dump (dict_t *dict); + #endif -- cgit