summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.h
diff options
context:
space:
mode:
authorMohamed Ashiq <ashiq333@gmail.com>2015-05-19 15:53:19 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-07-09 00:11:04 -0700
commitfe68152df36f6a6529a465c0ea25568fd557a901 (patch)
treebc7ec21e44ddd735573e290e444194068405ec45 /libglusterfs/src/dict.h
parent8c20f8bd0be0a797f57a5e68473d857357a16f9e (diff)
call-stub,circ-buff,client_t,compat,dict/libglusterfs : Porting to a new logging framework
Backport of http://review.gluster.org/10828 Cherry picked from a1e32fbcfbfaf6e4c63e140b3b90a80dc748a269 >Change-Id: Ie7d180e0ab2fed1270d66504606d1b2522884020 >BUG: 1194640 >Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com> >Reviewed-on: http://review.gluster.org/10828 >Tested-by: NetBSD Build System <jenkins@build.gluster.org> >Tested-by: Gluster Build System <jenkins@build.gluster.com> >Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Change-Id: Ie7d180e0ab2fed1270d66504606d1b2522884020 BUG: 1217722 Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com> Reviewed-on: http://review.gluster.org/11406 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/dict.h')
-rw-r--r--libglusterfs/src/dict.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index a9004e96a50..b7e7b747d4f 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -21,6 +21,7 @@
#include <pthread.h>
#include "common-utils.h"
+#include "libglusterfs-messages.h"
typedef struct _data data_t;
typedef struct _dict dict_t;
@@ -35,7 +36,8 @@ typedef struct _data_pair data_pair_t;
\
ret = dict_allocate_and_serialize (from_dict, to, &len);\
if (ret < 0) { \
- gf_log (this->name, GF_LOG_WARNING, \
+ gf_msg (this->name, GF_LOG_WARNING, 0, \
+ LG_MSG_DICT_SERIAL_FAILED, \
"failed to get serialized dict (%s)", \
(#from_dict)); \
ope = EINVAL; \
@@ -50,9 +52,10 @@ typedef struct _data_pair data_pair_t;
to = dict_new(); \
GF_VALIDATE_OR_GOTO (xl->name, to, labl); \
\
- ret = dict_unserialize (buff, len, &to); \
+ ret = dict_unserialize (buff, len, &to); \
if (ret < 0) { \
- gf_log (xl->name, GF_LOG_WARNING, \
+ gf_msg (xl->name, GF_LOG_WARNING, 0, \
+ LG_MSG_DICT_UNSERIAL_FAILED, \
"failed to unserialize dictionary (%s)", \
(#to)); \
\