diff options
| author | Xavier Hernandez <jahernan@redhat.com> | 2017-12-12 22:31:53 +0100 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2017-12-14 02:33:51 +0000 | 
| commit | 415e0bcc80b350fc75f325b490560f44ba419b20 (patch) | |
| tree | 6b428127e3fb460da434e7eab18352c65898eb9b /glusterfsd/src/glusterfsd-mgmt.c | |
| parent | bafe0c14f5743cb084a89595860e4ba33baf900c (diff) | |
all: Simplify component message id's definition
This patch creates a new way of defining message id's that is easier
and less error prone because it doesn't require so many manual changes
each time a new component is defined or a new message created.
Change-Id: I71ba8af9ac068f5add7e74f316a2478bc991c67b
Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'glusterfsd/src/glusterfsd-mgmt.c')
| -rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index c5000da4175..59b5bc658c3 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -780,7 +780,8 @@ glusterfs_handle_bitrot (rpcsvc_request_t *req)                                  &input);          if (ret < 0) { -                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_35); +                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_35, +                        "rpc req buffer unserialization failed.");                  goto out;          } @@ -789,7 +790,8 @@ glusterfs_handle_bitrot (rpcsvc_request_t *req)          xlator = xlator_search_by_name (any, xname);          if (!xlator) {                  snprintf (msg, sizeof (msg), "xlator %s is not loaded", xname); -                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_36); +                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_36, +                        "problem in xlator loading.");                  goto out;          } @@ -802,7 +804,8 @@ glusterfs_handle_bitrot (rpcsvc_request_t *req)          ret = dict_get_str (input, "scrub-value", &scrub_opt);          if (ret) {                  snprintf (msg, sizeof (msg), "Failed to get scrub value"); -                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_37); +                gf_msg (this->name, GF_LOG_ERROR, 0, glusterfsd_msg_37, +                        "failed to get dict value");                  ret = -1;                  goto out;          }  | 
