Skip to contentSkip to conversation

bpftool: Remove redundant "HAVE" prefix from the large INSN limit check

PATCH Applied Michal Rostecki 3 participants 3 messages Feb 2, 2020 – Feb 3, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpftool: Remove redundant "HAVE" prefix from the large INSN limit check

"HAVE" prefix is already applied by default to feature macros and before this change, the large INSN limit macro had the incorrect name with double "HAVE".

Fixes 2faef64aa6b3 ("bpftool: Add misc section and probe for large INSN limit")
---
 tools/bpf/bpftool/feature.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/bpf/bpftool/feature.c +1 -1
index 446ba891f1e2..941873d778d8 100644
@@ -580,7 +580,7 @@ probe_large_insn_limit(const char *define_prefix, __u32 ifindex)
 	res = bpf_probe_large_insn_limit(ifindex);
 	print_bool_feature("have_large_insn_limit",
 			   "Large program size limit",
-			   "HAVE_LARGE_INSN_LIMIT",
+			   "LARGE_INSN_LIMIT",
 			   res, define_prefix);
 }
 
Signature · 1 line
2.16.4