summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.h
diff options
context:
space:
mode:
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 46cb2a3ca55..30c12bd3209 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -16,6 +16,7 @@
#include <pthread.h>
#include "common-utils.h"
+#include "libglusterfs-messages.h"
typedef struct _data data_t;
typedef struct _dict dict_t;
@@ -30,7 +31,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; \
@@ -45,9 +47,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)); \
\