From 3bf5cd69c6c8997b089ad9d007c72cfd92c7f44e Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 6 Jun 2012 17:34:03 +0530 Subject: event-history: implement gf_log_eh for saving events Change-Id: I2ddf4e7849bda91bb99423e27082c2bae6800a70 BUG: 795419 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/3532 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- libglusterfs/src/logging.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src/logging.h') diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index bbf0d9a3..0d290bd5 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -73,6 +73,10 @@ extern char gf_log_xl_log_set; levl, ##fmt); \ } while (0) +#define gf_log_eh(fmt...) do { \ + _gf_log_eh (__FUNTION__, ##fmt); \ + } while (0) + #define gf_log_callingfn(dom, levl, fmt...) do { \ FMT_WARN (fmt); \ \ @@ -99,8 +103,7 @@ extern char gf_log_xl_log_set; void gf_log_logrotate (int signum); -int -gf_log_eh (void *data); + void gf_log_globals_init (void); int gf_log_init (const char *filename); void gf_log_cleanup (void); @@ -118,6 +121,8 @@ int _gf_log_nomem (const char *domain, const char *file, const char *function, int line, gf_loglevel_t level, size_t size); +int _gf_log_eh (const char *function, const char *fmt, ...); + int gf_log_from_client (const char *msg, char *identifier); void gf_log_lock (void); -- cgit