diff options
Diffstat (limited to 'libglusterfs/src/dict.h')
| -rw-r--r-- | libglusterfs/src/dict.h | 9 |
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)); \ \ |
