Skip to content

Commit

Permalink
selftests/bpf: Fix spelling mistake: "unpriviliged" -> "unprivileged"
Browse files Browse the repository at this point in the history
There are spelling mistakes in ASSERT messages. Fix these.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220523115604.49942-1-colin.i.king@gmail.com
  • Loading branch information
Colin Ian King authored and Daniel Borkmann committed May 23, 2022
1 parent 4050764 commit f9a3eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
Original file line number Diff line number Diff line change
@@ -261,10 +261,10 @@ void test_unpriv_bpf_disabled(void)
if (ret == -EPERM) {
/* if unprivileged_bpf_disabled=1, we get -EPERM back; that's okay. */
if (!ASSERT_OK(strcmp(unprivileged_bpf_disabled_orig, "1"),
"unpriviliged_bpf_disabled_on"))
"unprivileged_bpf_disabled_on"))
goto cleanup;
} else {
if (!ASSERT_OK(ret, "set unpriviliged_bpf_disabled"))
if (!ASSERT_OK(ret, "set unprivileged_bpf_disabled"))
goto cleanup;
}

0 comments on commit f9a3eca

Please sign in to comment.