summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/lvm-functions.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2008-12-11 03:29:37 +0000
committerDave Wysochanski <dwysocha@redhat.com>2008-12-11 03:29:37 +0000
commitfb19b83ff2ff72a18e98ffb7a3cc7c7e17c4515c (patch)
tree386a475827d0382868336c9cf6399c1f12f3f268 /daemons/clvmd/lvm-functions.c
parent4242655be18ba91f6720f9a233894cade24f631d (diff)
downloadlvm2-fb19b83ff2ff72a18e98ffb7a3cc7c7e17c4515c.tar.gz
lvm2-fb19b83ff2ff72a18e98ffb7a3cc7c7e17c4515c.tar.xz
lvm2-fb19b83ff2ff72a18e98ffb7a3cc7c7e17c4515c.zip
Remove init_debug() calls immediately after create_toolcontext() call.
We can safely remove because create_toolcontext() calls _init_logging(), which makes these calls: /* Debug level for log file output */ cmd->default_settings.debug = find_config_tree_int(cmd, "log/level", DEFAULT_LOGLEVEL); init_debug(cmd->default_settings.debug); Then at the bottom of create_toolcontext() we do this: cmd->current_settings = cmd->default_settings; So the call we are removing from init_lvm() functions (clvmd and lvmcmdline): init_debug(cmd->current_settings.debug); Just sets the value of debug based on 'cmd->current_settings.debug'. Since cmd->current_settings is equivalent to cmd->default_settings, and init_debug() was called with cmd->default_settings, the call we remove is redundant.
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r--daemons/clvmd/lvm-functions.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c
index 621493cc..1a7b1983 100644
--- a/daemons/clvmd/lvm-functions.c
+++ b/daemons/clvmd/lvm-functions.c
@@ -732,7 +732,6 @@ int init_lvm(int using_gulm)
/* Use LOG_DAEMON for syslog messages instead of LOG_USER */
init_syslog(LOG_DAEMON);
openlog("clvmd", LOG_PID, LOG_DAEMON);
- init_debug(cmd->current_settings.debug);
init_verbose(cmd->current_settings.verbose + VERBOSE_BASE_LEVEL);
set_activation(cmd->current_settings.activation);
archive_enable(cmd, cmd->current_settings.archive);