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

libbpf: Fix comment typo

parent 05e9b4f6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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),
		       "%s%s", prefix, name);
	/* 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.
	 */
	if (ret < 0 || ret >= sizeof(btf_type_name))