diff options
| author | Lin Yikai <[email protected]> | 2024-09-05 11:03:07 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-09-05 20:07:47 +0000 |
| commit | bd4d67f8ae55d42273c6cd661b622ed713d20350 (patch) | |
| tree | 1f0ff63a6cdb4c6ab0f2f27cbe2d5cd6006c8ffb /tools/lib/bpf/libbpf.c | |
| parent | bpftool: fix some typos in bpftool (diff) | |
| download | kernel-bd4d67f8ae55d42273c6cd661b622ed713d20350.tar.gz kernel-bd4d67f8ae55d42273c6cd661b622ed713d20350.zip | |
libbpf: fix some typos in libbpf
Hi, fix some spelling errors in libbpf, the details are as follows:
-in the code comments:
termintaing->terminating
architecutre->architecture
requring->requiring
recored->recoded
sanitise->sanities
allowd->allowed
abover->above
see bpf_udst_arg()->see bpf_usdt_arg()
Signed-off-by: Lin Yikai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index d3a542649e6b..27ad3c6ee868 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -1848,7 +1848,7 @@ static char *internal_map_name(struct bpf_object *obj, const char *real_name) snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, sfx_len, real_name); - /* sanitise map name to characters allowed by kernel */ + /* sanities map name to characters allowed by kernel */ for (p = map_name; *p && p < map_name + sizeof(map_name); p++) if (!isalnum(*p) && *p != '_' && *p != '.') *p = '_'; |
