# HG changeset patch # User Bernd Schubert <bernd.schub...@fastmail.fm> # Date 1289577717 -3600 # Node ID 595b6919ab011ecc1229b479f729da4be95749b9 # Parent f2a2ff2116ed27380b8610cfb465846c81d03d63 cl_logd: Remove childlog_dump_ipcmsg_stats
Remove unused function and variables. Signed-of-by: Bernd Schubert <bschub...@ddn.com> diff --git a/lib/clplumbing/cl_log.c b/lib/clplumbing/cl_log.c --- a/lib/clplumbing/cl_log.c +++ b/lib/clplumbing/cl_log.c @@ -925,25 +925,6 @@ send_dropped_message(gboolean use_pri_st } - - -static int childlog_ipcmsg_allocated = 0; -static int childlog_ipcmsg_freed = 0; -void childlog_dump_ipcmsg_stats(void); -void -childlog_dump_ipcmsg_stats(void) -{ - - cl_log(LOG_INFO, "childlog ipcmsg allocated:%d, freed=%d, diff =%d", - childlog_ipcmsg_allocated, - childlog_ipcmsg_freed, - childlog_ipcmsg_allocated - childlog_ipcmsg_freed); - - return; - - -} - static IPC_Message* ChildLogIPCMessage(int priority, const char *buf, int bufstrlen, gboolean use_prio_str, IPC_Channel* ch) @@ -1003,8 +984,6 @@ ChildLogIPCMessage(int priority, const c ret->msg_done = FreeChildLogIPCMessage; ret->msg_ch = ch; - childlog_ipcmsg_allocated++; - return ret; } @@ -1020,9 +999,7 @@ FreeChildLogIPCMessage(IPC_Message* msg) memset(msg, 0, sizeof (*msg)); free(msg); - - childlog_ipcmsg_freed ++; - + return; } _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/