bpf: test_maps: fix typos, "conenct" and "listeen"
authorColin Ian King <colin.king@canonical.com>
Wed, 30 Aug 2017 17:15:25 +0000 (18:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Aug 2017 22:32:16 +0000 (15:32 -0700)
Trivial fix to typos in printf error messages:
"conenct" -> "connect"
"listeen" -> "listen"

thanks to Daniel Borkmann for spotting one of these mistakes

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_maps.c

index 7059bb315a109617dfc6f3f150748a18cb79148b..4acc772a28c0a72026c583b809f192fb81f97f79 100644 (file)
@@ -504,7 +504,7 @@ static void test_sockmap(int tasks, void *data)
                }
                err = listen(sfd[i], 32);
                if (err < 0) {
-                       printf("failed to listeen\n");
+                       printf("failed to listen\n");
                        goto out;
                }
        }
@@ -525,7 +525,7 @@ static void test_sockmap(int tasks, void *data)
                addr.sin_port = htons(ports[i - 2]);
                err = connect(sfd[i], (struct sockaddr *)&addr, sizeof(addr));
                if (err) {
-                       printf("failed to conenct\n");
+                       printf("failed to connect\n");
                        goto out;
                }
        }