diff options
| author | Mohamed Ashiq <ashiq333@gmail.com> | 2015-05-19 15:21:46 +0530 | 
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-07-09 00:10:20 -0700 | 
| commit | 8c20f8bd0be0a797f57a5e68473d857357a16f9e (patch) | |
| tree | b8f412a40509668649329e8133888432c326310d /libglusterfs/src/event-history.c | |
| parent | 30926da5426f95a5eaf0b3f0e61f7ef4172daa36 (diff) | |
event,parse-utils,quota-common-utils,rbthash/libglusterfs : Porting to new logging framework
Backport of http://review.gluster.org/10823
Cherry-picked from a9b6933ef097d2a81ce21a8aeda2acc569cd1509
>Change-Id: I13ae9a97fe442c06cf50fe77c63718ea0858dc4d
>BUG: 1194640
>Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com>
>Reviewed-on: http://review.gluster.org/10823
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
>Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Change-Id: I13ae9a97fe442c06cf50fe77c63718ea0858dc4d
BUG: 1217722
Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com>
Reviewed-on: http://review.gluster.org/11404
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/event-history.c')
| -rw-r--r-- | libglusterfs/src/event-history.c | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/libglusterfs/src/event-history.c b/libglusterfs/src/event-history.c index e89df09c935..95484a4322b 100644 --- a/libglusterfs/src/event-history.c +++ b/libglusterfs/src/event-history.c @@ -9,6 +9,7 @@  */  #include "event-history.h" +#include "libglusterfs-messages.h"  eh_t *  eh_new (size_t buffer_size, gf_boolean_t use_buffer_once, @@ -19,14 +20,12 @@ eh_new (size_t buffer_size, gf_boolean_t use_buffer_once,          history = GF_CALLOC (1, sizeof (eh_t), gf_common_mt_eh_t);          if (!history) { -                gf_log ("", GF_LOG_ERROR, "allocating history failed.");                  goto out;          }          buffer = cb_buffer_new (buffer_size, use_buffer_once,                                  destroy_buffer_data);          if (!buffer) { -                gf_log ("", GF_LOG_ERROR, "allocating circular buffer failed");                  GF_FREE (history);                  history = NULL;                  goto out; @@ -44,7 +43,7 @@ eh_dump (eh_t *history, void *data,           int (dump_fn) (circular_buffer_t *buffer, void *data))  {          if (!history) { -                gf_log ("", GF_LOG_DEBUG, "history is NULL"); +                gf_msg_debug ("event-history", 0, "history is NULL");                  goto out;          } @@ -68,8 +67,8 @@ int  eh_destroy (eh_t *history)  {          if (!history) { -                gf_log ("", GF_LOG_INFO, "history for the xlator is " -                        "NULL"); +                gf_msg ("event-history", GF_LOG_INFO, 0, LG_MSG_INVALID_ARG, +                        "history for the xlator is NULL");                  return -1;          }  | 
