Browse Source

[master] spelling

Francis Dupont 10 years ago
parent
commit
4f0413cb63

+ 4 - 4
src/lib/log/compiler/message.cc

@@ -195,7 +195,7 @@ sortedIdentifiers(MessageDictionary& dictionary) {
 /// The $NAMESPACE directive may well specify a namespace in the form a::b.
 /// The $NAMESPACE directive may well specify a namespace in the form a::b.
 /// Unfortunately, the C++ "namespace" statement can only accept a single
 /// Unfortunately, the C++ "namespace" statement can only accept a single
 /// string - to set up the namespace of "a::b" requires two statements, one
 /// 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
 /// This function returns the set of namespace components as a vector of
 /// strings.  A vector of one element, containing the empty string, is returned
 /// 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
 /// \brief Write python file
 ///
 ///
 /// Writes the python file containing the symbol definitions as module level
 /// 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.
 /// so they can be replaced by dictionary later.
 ///
 ///
 /// \param file Name of the message file. The source code is written to a file
 /// \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.)
 /// of objects declared outside functions) gets run.)
 ///
 ///
 /// There _may_ be a problem when we come to port this to Windows.  Microsoft
 /// 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
 /// 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.
 /// to it.  But until BIND-10 is ported to Windows, we won't know.
 ///
 ///

+ 2 - 2
src/lib/log/interprocess/README

@@ -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
 inter process locking for the log library.  We use our own locks
 because such locks are only available in relatively recent versions of
 because such locks are only available in relatively recent versions of
 log4cplus.  Also (against our usual practice) we somehow re-invented
 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
 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
 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
 module should use this; they should use existing external
 tools/libraries.
 tools/libraries.
 
 

+ 1 - 1
src/lib/log/log_formatter.h

@@ -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
 /// 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
 /// 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
 /// 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 {
 template<class Logger> class Formatter {
 private:
 private:
     /// \brief The logger we will use to output the final message.
     /// \brief The logger we will use to output the final message.

+ 2 - 2
src/lib/log/logger.h

@@ -142,7 +142,7 @@ public:
 ///
 ///
 /// 1. Constructing a logger by instantiating it with a specific name. (If the
 /// 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
 /// 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
 /// 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.
 /// 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
 /// These will avoid the potentially-expensive evaluation of arguments if the
@@ -168,7 +168,7 @@ public:
     /// initialization (which causes problems on some operating systems).
     /// initialization (which causes problems on some operating systems).
     ///
     ///
     /// \note Note also that there is no constructor taking a std::string. This
     /// \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.
     /// string, so leading to problems mentioned above.
     Logger(const char* name) : loggerptr_(NULL) {
     Logger(const char* name) : loggerptr_(NULL) {
 
 

+ 2 - 2
src/lib/log/logger_level_impl.h

@@ -37,7 +37,7 @@ namespace log {
 /// and the idea of DEBUG has been extended, as will be seen below.  In
 /// 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
 /// Kea terms, this is known as "severity"; the "logging level" usage will
 /// usually be used when talking about log4cplus aspects of the idea (as
 /// 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
 /// 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
 /// 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
     /// 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
     /// 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
     /// 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.
     /// \param level String representing the logging level.
     ///
     ///

+ 1 - 1
src/lib/log/logger_support.cc

@@ -110,7 +110,7 @@ setDefaultLoggingOutput(bool verbose) {
         }
         }
 
 
     } else {
     } else {
-        // Not a recognised destination, assume a file.
+        // Not a recognized destination, assume a file.
         option.destination = OutputOption::DEST_FILE;
         option.destination = OutputOption::DEST_FILE;
         option.filename = dest;
         option.filename = dest;
     }
     }

+ 1 - 1
src/lib/log/logger_support.h

@@ -52,7 +52,7 @@ void setLoggingInitialized(bool state = true);
 ///
 ///
 /// - Name of the root logger
 /// - Name of the root logger
 /// - The severity (and if applicable, debug level) for 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
 /// This function is likely to change over time as more debugging options are
 /// held in the configuration database.
 /// held in the configuration database.

+ 1 - 1
src/lib/log/logger_unittest_support.h

@@ -21,7 +21,7 @@
 /// \file
 /// \file
 /// \brief Miscellaneous logging functions used by the unit tests.
 /// \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
 /// the functions defined here allow a limited amount of logging configuration
 /// through the use of environment variables
 /// through the use of environment variables
 
 

+ 4 - 4
src/lib/log/logging.dox

@@ -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
 Like severities, levels are cumulative; so if level 25 is set as the
 debug level, all debug messages associated levels 0 to 25 (inclusive)
 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:
 levels as part of the severity system:
 @code
 @code
 FATAL            Most severe
 FATAL            Most severe
@@ -268,7 +268,7 @@ blank lines are ignored.</li>
 </ul>
 </ul>
 
 
 Although there are few restriction on what can be in the message
 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
 both in the contents of the message and in the usage.  All code
 should adhere to these:
 should adhere to these:
 
 
@@ -331,7 +331,7 @@ message identification - appears in the Kea message manual.  It
 should:
 should:
 
 
 <ul>
 <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
 <li>Expand on the text of the message.  In some cases, such as
 debug messages, the message text may provide more or less sufficient
 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
 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
 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
 As the .mes file is not directly included in any compilation, it will
 not be automatically copied into a distribution created through this
 not be automatically copied into a distribution created through this

+ 3 - 3
src/lib/log/message_dictionary.h

@@ -118,7 +118,7 @@ public:
     ///
     ///
     /// \param elements null-terminated array of const char* alternating ID and
     /// \param elements null-terminated array of const char* alternating ID and
     /// message text.  This should be an odd number of elements long, the last
     /// 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.
     /// last ID is ignored.
     ///
     ///
     /// \return Vector of message IDs that were not loaded because an ID of the
     /// \return Vector of message IDs that were not loaded because an ID of the
@@ -134,7 +134,7 @@ public:
     /// \param ident Message identification
     /// \param ident Message identification
     ///
     ///
     /// \return Text associated with message or empty string if the ID is not
     /// \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.)
     /// string.)
     virtual const std::string& getText(const MessageID& ident) const {
     virtual const std::string& getText(const MessageID& ident) const {
         return(getText(boost::lexical_cast<std::string>(ident)));
         return(getText(boost::lexical_cast<std::string>(ident)));
@@ -148,7 +148,7 @@ public:
     /// \param ident Message identification
     /// \param ident Message identification
     ///
     ///
     /// \return Text associated with message or empty string if the ID is not
     /// \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.)
     /// string.)
     virtual const std::string& getText(const std::string& ident) const;
     virtual const std::string& getText(const std::string& ident) const;
 
 

+ 3 - 3
src/lib/log/tests/logger_example.cc

@@ -65,7 +65,7 @@ void usage() {
 "    -l logger      Give the name of the logger to which the following\n"
 "    -l logger      Give the name of the logger to which the following\n"
 "                   output specifications will apply.\n"
 "                   output specifications will apply.\n"
 "\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"
 "and, if applicable, its debug level:\n"
 "\n"
 "\n"
 "   -d dbglevel     Debug level.  Only interpreted if the severity is 'debug'\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;
                 cur_opt.stream = OutputOption::STR_STDERR;
 
 
             } else {
             } else {
-                cerr << "Unrecognised console option: " << optarg << "\n";
+                cerr << "Unrecognized console option: " << optarg << "\n";
                 return (1);
                 return (1);
             }
             }
             break;
             break;
@@ -259,7 +259,7 @@ int main(int argc, char** argv) {
 
 
 
 
         default:
         default:
-            std::cerr << "Unrecognised option: " <<
+            std::cerr << "Unrecognized option: " <<
                 static_cast<char>(option) << "\n";
                 static_cast<char>(option) << "\n";
             return (1);
             return (1);
         }
         }

+ 1 - 1
src/lib/log/tests/logger_level_impl_unittest.cc

@@ -154,7 +154,7 @@ TEST_F(LoggerLevelImplTest, FromString) {
     EXPECT_EQ(log4cplus::NOT_SET_LOG_LEVEL,
     EXPECT_EQ(log4cplus::NOT_SET_LOG_LEVEL,
               LoggerLevelImpl::logLevelFromString("DEBU"));
               LoggerLevelImpl::logLevelFromString("DEBU"));
     EXPECT_EQ(log4cplus::NOT_SET_LOG_LEVEL,
     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".
 // ... and check the conversion back again.  All levels should convert to "DEBUG".

+ 1 - 1
src/lib/log/tests/logger_manager_unittest.cc

@@ -72,7 +72,7 @@ public:
         option.destination = OutputOption::DEST_FILE;
         option.destination = OutputOption::DEST_FILE;
         option.filename = name_;
         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.
         // INFO severity.
         spec_.setName(logname_);
         spec_.setName(logname_);
         spec_.addOutputOption(option);
         spec_.addOutputOption(option);

+ 2 - 2
src/lib/log/tests/logger_name_unittest.cc

@@ -52,13 +52,13 @@ TEST_F(LoggerNameTest, RootNameSetGet) {
     setRootLoggerName(name1);
     setRootLoggerName(name1);
     EXPECT_EQ(name1, getRootLoggerName());
     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
     // 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
     // when this test will be run) so to check that setName() actually
     // does change the name, run the test again with a different name.
     // does change the name, run the test again with a different name.
     //
     //
     // (There was always the outside chance that the root logger 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);
     setRootLoggerName(name2);
     EXPECT_EQ(name2, getRootLoggerName());
     EXPECT_EQ(name2, getRootLoggerName());
 }
 }

+ 1 - 1
src/lib/log/tests/logger_unittest.cc

@@ -247,7 +247,7 @@ TEST_F(LoggerTest, EffectiveSeverityInheritance) {
     EXPECT_EQ(isc::log::INFO, parent.getEffectiveSeverity());
     EXPECT_EQ(isc::log::INFO, parent.getEffectiveSeverity());
     EXPECT_EQ(isc::log::INFO, child.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);
     parent.setSeverity(isc::log::WARN);
     EXPECT_EQ(isc::log::WARN, parent.getEffectiveSeverity());
     EXPECT_EQ(isc::log::WARN, parent.getEffectiveSeverity());
     EXPECT_EQ(isc::log::WARN, child.getEffectiveSeverity());
     EXPECT_EQ(isc::log::WARN, child.getEffectiveSeverity());

+ 2 - 2
src/lib/log/tests/message_reader_unittest.cc

@@ -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) {
 TEST_F(MessageReaderTest, InvalidDirectives) {
 
 
@@ -170,7 +170,7 @@ TEST_F(MessageReaderTest, Namespace) {
     EXPECT_NO_THROW(reader_.processLine("$NAMESPACE isc::log"));
     EXPECT_NO_THROW(reader_.processLine("$NAMESPACE isc::log"));
     EXPECT_EQ(string("isc::log"), reader_.getNamespace());
     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();
     reader_.clearNamespace();
     EXPECT_NO_THROW(reader_.processLine("$NAMESPACE ::"));
     EXPECT_NO_THROW(reader_.processLine("$NAMESPACE ::"));
     EXPECT_EQ(string("::"), reader_.getNamespace());
     EXPECT_EQ(string("::"), reader_.getNamespace());