summaryrefslogtreecommitdiff
path: root/bin/schroot-base
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2009-03-28 13:22:08 +0000
committerRoger Leigh <rleigh@debian.org>2009-03-28 13:22:08 +0000
commit04c19bb6c28295a387e60066c48db7f443e5b925 (patch)
tree35be95bd155fd2fd82b24dc35dd149b48c48ee1c /bin/schroot-base
parent991360778a0be53da8db5911d3bd0753337e4ca2 (diff)
downloadschroot-04c19bb6c28295a387e60066c48db7f443e5b925.tar.gz
[sbuild-log] Rename DebugLevel to debug_level
Also rename sbuild::debug_level to sbuild::debug_log_level to avoid a name clash. DebugLevel was the last remaining CamelCase typedef from the original GObject-based C implementation.
Diffstat (limited to 'bin/schroot-base')
-rw-r--r--bin/schroot-base/schroot-base-options.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/schroot-base/schroot-base-options.cc b/bin/schroot-base/schroot-base-options.cc
index e4621870..d32a0d7e 100644
--- a/bin/schroot-base/schroot-base-options.cc
+++ b/bin/schroot-base/schroot-base-options.cc
@@ -145,20 +145,20 @@ options::check_options ()
if (vm.count("debug"))
{
if (this->debug_level == "none")
- sbuild::debug_level = sbuild::DEBUG_NONE;
+ sbuild::debug_log_level = sbuild::DEBUG_NONE;
else if (this->debug_level == "notice")
- sbuild::debug_level = sbuild::DEBUG_NOTICE;
+ sbuild::debug_log_level = sbuild::DEBUG_NOTICE;
else if (this->debug_level == "info")
- sbuild::debug_level = sbuild::DEBUG_INFO;
+ sbuild::debug_log_level = sbuild::DEBUG_INFO;
else if (this->debug_level == "warning")
- sbuild::debug_level = sbuild::DEBUG_WARNING;
+ sbuild::debug_log_level = sbuild::DEBUG_WARNING;
else if (this->debug_level == "critical")
- sbuild::debug_level = sbuild::DEBUG_CRITICAL;
+ sbuild::debug_log_level = sbuild::DEBUG_CRITICAL;
else
throw opt::validation_error(_("Invalid debug level"));
}
else
- sbuild::debug_level = sbuild::DEBUG_NONE;
+ sbuild::debug_log_level = sbuild::DEBUG_NONE;
}
void