Commit 4f0413cb authored by Francis Dupont's avatar Francis Dupont
Browse files

[master] spelling

parent a5db94b9
......@@ -195,7 +195,7 @@ sortedIdentifiers(MessageDictionary& dictionary) {
/// The $NAMESPACE directive may well specify a namespace in the form a::b.
/// Unfortunately, the C++ "namespace" statement can only accept a single
/// string - to set up the namespace of "a::b" requires two statements, one
/// for "namspace a" and the other for "namespace b".
/// for "namespace a" and the other for "namespace b".
///
/// This function returns the set of namespace components as a vector of
/// strings. A vector of one element, containing the empty string, is returned
......@@ -252,7 +252,7 @@ writeClosingNamespace(ostream& output, const vector<string>& ns) {
/// \brief Write python file
///
/// Writes the python file containing the symbol definitions as module level
/// constants. These are objects which register themself at creation time,
/// constants. These are objects which register themselves at creation time,
/// so they can be replaced by dictionary later.
///
/// \param file Name of the message file. The source code is written to a file
......@@ -403,8 +403,8 @@ replaceNonAlphaNum(char c) {
/// of objects declared outside functions) gets run.)
///
/// There _may_ be a problem when we come to port this to Windows. Microsoft
/// Visual Studio contains a "Whole Program Optimisation" option, where the
/// optimisation is done at link-time, not compiler-time. In this it _may_
/// Visual Studio contains a "Whole Program Optimization" option, where the
/// optimization is done at link-time, not compiler-time. In this it _may_
/// decide to remove the initializer object because of a lack of references
/// to it. But until BIND-10 is ported to Windows, we won't know.
///
......
......@@ -2,10 +2,10 @@ The files in this directory implement a helper sub-library of the
inter process locking for the log library. We use our own locks
because such locks are only available in relatively recent versions of
log4cplus. Also (against our usual practice) we somehow re-invented
an in-house version of such a general purose library rather than
an in-house version of such a general purpose library rather than
existing proven tools such as boost::interprocess. While we decided
to go with the in-house version for the log library at least until we
completely swith to log4cplus's native lock support, no other BIND 10
completely switch to log4cplus's native lock support, no other BIND 10
module should use this; they should use existing external
tools/libraries.
......
......@@ -106,7 +106,7 @@ replacePlaceholder(std::string* message, const std::string& replacement,
/// And if we did not deactivate the original Formatter, that one would get
/// destroyed before any call to .arg, producing an output, and then the one
/// the .arg calls are called on would get destroyed as well, producing output
/// again. So, think of this behaviour as soul moving from one to another.
/// again. So, think of this behavior as soul moving from one to another.
template<class Logger> class Formatter {
private:
/// \brief The logger we will use to output the final message.
......
......@@ -142,7 +142,7 @@ public:
///
/// 1. Constructing a logger by instantiating it with a specific name. (If the
/// same logger is in multiple functions within a file, overhead can be
/// minimised by declaring it as a file-wide static variable.)
/// minimized by declaring it as a file-wide static variable.)
/// 2. Using the error(), info() etc. methods to log an error. (However, it is
/// recommended to use the LOG_ERROR, LOG_INFO etc. macros defined in macros.h.
/// These will avoid the potentially-expensive evaluation of arguments if the
......@@ -168,7 +168,7 @@ public:
/// initialization (which causes problems on some operating systems).
///
/// \note Note also that there is no constructor taking a std::string. This
/// minimises the possibility of initializing a static logger with a
/// minimizes the possibility of initializing a static logger with a
/// string, so leading to problems mentioned above.
Logger(const char* name) : loggerptr_(NULL) {
......
......@@ -37,7 +37,7 @@ namespace log {
/// and the idea of DEBUG has been extended, as will be seen below. In
/// Kea terms, this is known as "severity"; the "logging level" usage will
/// usually be used when talking about log4cplus aspects of the idea (as
/// log4cplus uses that teminology).
/// log4cplus uses that terminology).
///
/// Debug level: This is a number that ranges from 0 to 99 and is used by the
/// application to control the detail of debug output. A value of 0 gives the
......@@ -103,7 +103,7 @@ public:
/// DEBUG0 being equivalent to DEBUG, the standard log level. If the name
/// is DEBUGn but n lies outside the range of debug levels, debug level
/// specifies is coerced to the nearest valid value. If the string is just
/// not recognised, a NOT_SET_LOG_LEVEL is returned.
/// not recognized, a NOT_SET_LOG_LEVEL is returned.
///
/// \param level String representing the logging level.
///
......
......@@ -110,7 +110,7 @@ setDefaultLoggingOutput(bool verbose) {
}
} else {
// Not a recognised destination, assume a file.
// Not a recognized destination, assume a file.
option.destination = OutputOption::DEST_FILE;
option.filename = dest;
}
......
......@@ -52,7 +52,7 @@ void setLoggingInitialized(bool state = true);
///
/// - Name of the root logger
/// - The severity (and if applicable, debug level) for the root logger.
/// - Name of a local message file, containing localisation of message text.
/// - Name of a local message file, containing localization of message text.
///
/// This function is likely to change over time as more debugging options are
/// held in the configuration database.
......
......@@ -21,7 +21,7 @@
/// \file
/// \brief Miscellaneous logging functions used by the unit tests.
///
/// As the configuration database is unsually unavailable during unit tests,
/// As the configuration database is usually unavailable during unit tests,
/// the functions defined here allow a limited amount of logging configuration
/// through the use of environment variables
......
......@@ -84,7 +84,7 @@ address and a level of 70 records every update of the round-trip time.
Like severities, levels are cumulative; so if level 25 is set as the
debug level, all debug messages associated levels 0 to 25 (inclusive)
will be output. In fact, it is probably easier to visualise the debug
will be output. In fact, it is probably easier to visualize the debug
levels as part of the severity system:
@code
FATAL Most severe
......@@ -268,7 +268,7 @@ blank lines are ignored.</li>
</ul>
Although there are few restriction on what can be in the message
identifcation and text, there are a number of conventions used by Kea,
identification and text, there are a number of conventions used by Kea,
both in the contents of the message and in the usage. All code
should adhere to these:
......@@ -331,7 +331,7 @@ message identification - appears in the Kea message manual. It
should:
<ul>
<li>Describe the serverity of the message (debug, informational etc.)</li>
<li>Describe the severity of the message (debug, informational etc.)</li>
<li>Expand on the text of the message. In some cases, such as
debug messages, the message text may provide more or less sufficient
......@@ -471,7 +471,7 @@ which is in the repository - is accessed through the "top_srcdir" macro.
The BUILT_SOURCES line notifies the Automake that the .h and .cc files
need to be created before they can be used in the compilation, so
instructs it to organse things so that the message compiler is run first.
instructs it to organize things so that the message compiler is run first.
As the .mes file is not directly included in any compilation, it will
not be automatically copied into a distribution created through this
......
......@@ -118,7 +118,7 @@ public:
///
/// \param elements null-terminated array of const char* alternating ID and
/// message text. This should be an odd number of elements long, the last
/// elemnent being NULL. If it is an even number of elements long, the
/// element being NULL. If it is an even number of elements long, the
/// last ID is ignored.
///
/// \return Vector of message IDs that were not loaded because an ID of the
......@@ -134,7 +134,7 @@ public:
/// \param ident Message identification
///
/// \return Text associated with message or empty string if the ID is not
/// recognised. (Note: this precludes an ID being associated with an empty
/// recognized. (Note: this precludes an ID being associated with an empty
/// string.)
virtual const std::string& getText(const MessageID& ident) const {
return(getText(boost::lexical_cast<std::string>(ident)));
......@@ -148,7 +148,7 @@ public:
/// \param ident Message identification
///
/// \return Text associated with message or empty string if the ID is not
/// recognised. (Note: this precludes an ID being associated with an empty
/// recognized. (Note: this precludes an ID being associated with an empty
/// string.)
virtual const std::string& getText(const std::string& ident) const;
......
......@@ -65,7 +65,7 @@ void usage() {
" -l logger Give the name of the logger to which the following\n"
" output specifications will apply.\n"
"\n"
"Each logger is followed by the indication of the serverity it is logging\n"
"Each logger is followed by the indication of the severity it is logging\n"
"and, if applicable, its debug level:\n"
"\n"
" -d dbglevel Debug level. Only interpreted if the severity is 'debug'\n"
......@@ -158,7 +158,7 @@ int main(int argc, char** argv) {
cur_opt.stream = OutputOption::STR_STDERR;
} else {
cerr << "Unrecognised console option: " << optarg << "\n";
cerr << "Unrecognized console option: " << optarg << "\n";
return (1);
}
break;
......@@ -259,7 +259,7 @@ int main(int argc, char** argv) {
default:
std::cerr << "Unrecognised option: " <<
std::cerr << "Unrecognized option: " <<
static_cast<char>(option) << "\n";
return (1);
}
......
......@@ -154,7 +154,7 @@ TEST_F(LoggerLevelImplTest, FromString) {
EXPECT_EQ(log4cplus::NOT_SET_LOG_LEVEL,
LoggerLevelImpl::logLevelFromString("DEBU"));
EXPECT_EQ(log4cplus::NOT_SET_LOG_LEVEL,
LoggerLevelImpl::logLevelFromString("unrecognised"));
LoggerLevelImpl::logLevelFromString("unrecognized"));
}
// ... and check the conversion back again. All levels should convert to "DEBUG".
......
......@@ -72,7 +72,7 @@ public:
option.destination = OutputOption::DEST_FILE;
option.filename = name_;
// Set target output to the file logger. The defauls indicate
// Set target output to the file logger. The defaults indicate
// INFO severity.
spec_.setName(logname_);
spec_.addOutputOption(option);
......
......@@ -52,13 +52,13 @@ TEST_F(LoggerNameTest, RootNameSetGet) {
setRootLoggerName(name1);
EXPECT_EQ(name1, getRootLoggerName());
// We could not test that the root logger name is initialised
// We could not test that the root logger name is initialized
// correctly (as there is one instance of it and we don't know
// when this test will be run) so to check that setName() actually
// does change the name, run the test again with a different name.
//
// (There was always the outside chance that the root logger name
// was initialised with name1 and that setName() has no effect.)
// was initialized with name1 and that setName() has no effect.)
setRootLoggerName(name2);
EXPECT_EQ(name2, getRootLoggerName());
}
......
......@@ -247,7 +247,7 @@ TEST_F(LoggerTest, EffectiveSeverityInheritance) {
EXPECT_EQ(isc::log::INFO, parent.getEffectiveSeverity());
EXPECT_EQ(isc::log::INFO, child.getEffectiveSeverity());
// Change the parwnt's severity and check it is reflects in the child.
// Change the parent's severity and check it is reflects in the child.
parent.setSeverity(isc::log::WARN);
EXPECT_EQ(isc::log::WARN, parent.getEffectiveSeverity());
EXPECT_EQ(isc::log::WARN, child.getEffectiveSeverity());
......
......@@ -97,7 +97,7 @@ processLineException(MessageReader& reader, const char* what,
}
}
// Check that it recognises invalid directives
// Check that it recognizes invalid directives
TEST_F(MessageReaderTest, InvalidDirectives) {
......@@ -170,7 +170,7 @@ TEST_F(MessageReaderTest, Namespace) {
EXPECT_NO_THROW(reader_.processLine("$NAMESPACE isc::log"));
EXPECT_EQ(string("isc::log"), reader_.getNamespace());
// Check that the indication of the anonymous namespace will be recognised.
// Check that the indication of the anonymous namespace will be recognized.
reader_.clearNamespace();
EXPECT_NO_THROW(reader_.processLine("$NAMESPACE ::"));
EXPECT_EQ(string("::"), reader_.getNamespace());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment