master - logging: remove unused code
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fb83719d7f6ca0b2da0a56e5ce7ac1a9d1ebc7e1 Commit: fb83719d7f6ca0b2da0a56e5ce7ac1a9d1ebc7e1 Parent: ce79b62bc2fcaddf65e090ec3fef75926cddf82c Author: David Teigland <[email protected]> AuthorDate: Thu Feb 28 10:30:54 2019 -0600 Committer: David Teigland <[email protected]> CommitterDate: Thu Feb 28 10:30:54 2019 -0600
logging: remove unused code
Incomplete bits of original code that's unused.
--- lib/commands/toolcontext.c | 6 ---- lib/log/log.c | 61 +------------------------------------------- lib/log/lvm-logging.h | 2 - 3 files changed, 1 insertions(+), 68 deletions(-)
lib/commands/toolcontext.c +0 -6
@@ -374,15 +374,10 @@ static void _init_logging(struct cmd_context *cmd) log_file =find_config_tree_str (cmd, log_file_CFG,NULL );if (log_file) { -release_log_memory ();fin_log ();init_log_file (log_file, append); } - log_file =find_config_tree_str (cmd, log_activate_file_CFG,NULL ); -if (log_file) -init_log_direct (log_file, append); -init_log_while_suspended (find_config_tree_bool (cmd, log_activation_CFG,NULL )); cmd->default_settings.debug_classes =_parse_debug_classes (cmd);
@@ -1995,7 +1990,6 @@ void destroy_toolcontext(struct cmd_context *cmd)lvmpolld_disconnect (); -release_log_memory ();activation_exit ();reset_log_duplicated ();fin_log ();
lib/log/log.c +1 -60
102 lines not on this page · raw message
lib/log/lvm-logging.h +0 -2
@@ -53,12 +53,10 @@ void init_debug_output_fields(uint32_t debug_fields);void init_log_file (const char *log_file,int append);void unlink_log_file (int ret); -void init_log_direct (const char *log_file,int append);void init_log_while_suspended (int log_while_suspended);void init_abort_on_internal_errors (int fatal);void fin_log (void ); -void release_log_memory (void );void reset_log_duplicated (void );void init_syslog (int facility);