]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: contrib/spoa_example: Fix several typos
authorMiroslav Zagorac <mzagorac@haproxy.com>
Wed, 19 Feb 2020 11:12:06 +0000 (12:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Mar 2020 14:30:00 +0000 (15:30 +0100)
This patch can be backported as far as 1.8.

contrib/spoa_example/spoa.c

index 7b40e81ed62082b781a95004da5a81d11c39512b..f32ac449a1e9c7079642c02c825e40bf2025b140 100644 (file)
@@ -1370,7 +1370,7 @@ process_frame_cb(evutil_socket_t fd, short events, void *arg)
        end = frame->buf+max_frame_size;
 
        if (frame->ip_score != -1) {
-               DEBUG(frame->worker, "Add action : set variable ip_scode=%u",
+               DEBUG(frame->worker, "Add action : set variable ip_score=%u",
                      frame->ip_score);
 
                *p++ = SPOE_ACT_T_SET_VAR;                     /* Action type */
@@ -1419,7 +1419,7 @@ read_frame_cb(evutil_socket_t fd, short events, void *arg)
                 frame->len - frame->offset);
        if (n <= 0) {
                if (n < 0) {
-                       LOG(client->worker, "Frame to read frame : %m");
+                       LOG(client->worker, "Failed to read frame : %m");
                        goto close;
                }
                return;
@@ -1548,7 +1548,7 @@ write_frame_cb(evutil_socket_t fd, short events, void *arg)
        if (frame->offset != frame->len)
                return;
 
-       DEBUG(client->worker, "<%lu> Frame of %u bytes send",
+       DEBUG(client->worker, "<%lu> Frame of %u bytes sent",
              client->id, frame->len);
 
        switch (client->state) {