diff options
author | Nandaja Varma <nandaja.varma@gmail.com> | 2015-03-09 16:59:54 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-06-16 03:50:10 -0700 |
commit | b3c9fdacce4057e1ca8275dd095782ac4004dd92 (patch) | |
tree | 37c5394639848a48a096dd368136562783fa88b1 /xlators/mgmt/glusterd/src/glusterd-volgen.h | |
parent | c58a15811a82c675a4cc20d664731239daa0c48c (diff) |
glusterd: Porting messages to new logging framework.
Backport of http://review.gluster.org/#/c/9836/
Change-Id: I56ced6fca0246c230cc389132c47a0f60472ed0c
BUG: 1217722
Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com>
Reviewed-on: http://review.gluster.org/9836
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
(cherry picked from commit 2ae034374ce449c54b1b4ae8350401371db1d8d3)
Reviewed-on: http://review.gluster.org/11221
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.h b/xlators/mgmt/glusterd/src/glusterd-volgen.h index 571a13c02f4..cdeaea42c99 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.h +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.h @@ -21,6 +21,7 @@ #endif #include "glusterd.h" +#include "glusterd-messages.h" /* volopt map key name definitions */ @@ -64,12 +65,15 @@ typedef struct volgen_graph volgen_graph_t; if (!strchr (key, '.')) { \ ret = option_complete (key, &completion); \ if (ret) { \ - gf_log ("", GF_LOG_ERROR, "Out of memory"); \ + gf_msg ("", GF_LOG_ERROR, ENOMEM, \ + GD_MSG_NO_MEMORY, "Out of memory"); \ return _gf_false; \ } \ \ if (!completion) { \ - gf_log ("", GF_LOG_ERROR, "option %s does not" \ + gf_msg ("", GF_LOG_ERROR, 0, \ + GD_MSG_INVALID_ENTRY, \ + "option %s does not" \ "exist", key); \ return _gf_false; \ } \ |