]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the log subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 20:10:04 +0000 (12:10 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:26:42 +0000 (22:26 +0100)
Fix some misspells in the code comments of the log subsystem.

include/proto/log.h
src/log.c

index 30d4dce7fb977b72ee75a3e26b499994cc62fa53..577e570ee2fefd6e972d3aa2c1d4af87ba4bec85 100644 (file)
@@ -151,12 +151,12 @@ int get_log_facility(const char *fac);
  * Write a string in the log string
  * Take cares of quote options
  *
- * Return the adress of the \0 character, or NULL on error
+ * Return the address of the \0 character, or NULL on error
  */
 char *lf_text_len(char *dst, const char *src, size_t len, size_t size, const struct logformat_node *node);
 
 /*
- * Write a IP adress to the log string
+ * Write a IP address to the log string
  * +X option write in hexadecimal notation, most signifant byte on the left
  */
 char *lf_ip(char *dst, const struct sockaddr *sockaddr, size_t size, const struct logformat_node *node);
index b6f99bc29268210a50df578ab9521a4a52b9dab9..87019b08abf57b0dcb849e950dd4fe17526a9400 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -576,7 +576,7 @@ int parse_logformat_string(const char *fmt, struct proxy *curproxy, struct list
                if (!*str)
                        cformat = LF_END;              // preset it to save all states from doing this
 
-               /* The prinicple of the two-step state machine below is to first detect a change, and
+               /* The principle of the two-step state machine below is to first detect a change, and
                 * second have all common paths processed at one place. The common paths are the ones
                 * encountered in text areas (LF_INIT, LF_TEXT, LF_SEPARATOR) and at the end (LF_END).
                 * We use the common LF_INIT state to dispatch to the different final states.
@@ -1077,7 +1077,7 @@ static char *lf_encode_chunk(char *start, char *stop,
  * Write a string in the log string
  * Take cares of quote and escape options
  *
- * Return the adress of the \0 character, or NULL on error
+ * Return the address of the \0 character, or NULL on error
  */
 char *lf_text_len(char *dst, const char *src, size_t len, size_t size, const struct logformat_node *node)
 {
@@ -1129,7 +1129,7 @@ static inline char *lf_text(char *dst, const char *src, size_t size, const struc
 }
 
 /*
- * Write a IP adress to the log string
+ * Write a IP address to the log string
  * +X option write in hexadecimal notation, most signifant byte on the left
  */
 char *lf_ip(char *dst, const struct sockaddr *sockaddr, size_t size, const struct logformat_node *node)
@@ -1631,7 +1631,7 @@ void init_log()
         *
         * All the chars are encoded except "VCHAR", "obs-text", SP and HTAB.
         * The encoded chars are form 0x00 to 0x08, 0x0a to 0x1f and 0x7f. The
-        * "obs-fold" is volontary forgotten because haproxy remove this.
+        * "obs-fold" is voluntarily forgotten because haproxy remove this.
         */
        memset(http_encode_map, 0, sizeof(http_encode_map));
        for (i = 0x00; i <= 0x08; i++)