Commit c139e40a authored by Jason Wang's avatar Jason Wang Committed by Andrii Nakryiko

libbpf: Fix comment typo

Remove the repeated word 'the' in line 48.
Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210727115928.74600-1-wangborong@cdjrlc.com
parent 05e9b4f6
...@@ -8260,7 +8260,7 @@ static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix, ...@@ -8260,7 +8260,7 @@ static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix,
ret = snprintf(btf_type_name, sizeof(btf_type_name), ret = snprintf(btf_type_name, sizeof(btf_type_name),
"%s%s", prefix, name); "%s%s", prefix, name);
/* snprintf returns the number of characters written excluding the /* snprintf returns the number of characters written excluding the
* the terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it * terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it
* indicates truncation. * indicates truncation.
*/ */
if (ret < 0 || ret >= sizeof(btf_type_name)) if (ret < 0 || ret >= sizeof(btf_type_name))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment