diff options
Diffstat (limited to 'src/gen_bpf_attr_check.sh')
-rwxr-xr-x | src/gen_bpf_attr_check.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen_bpf_attr_check.sh b/src/gen_bpf_attr_check.sh index c8fe1e3e6..b8c2cdb40 100755 --- a/src/gen_bpf_attr_check.sh +++ b/src/gen_bpf_attr_check.sh @@ -32,7 +32,7 @@ for struct in $(sed -n 's/^struct \([^[:space:]]\+_struct\) .*/\1/p' < "$input") enum="$enum${enum:+.}" ENUM="$ENUM${ENUM:+_}" sed -n '/^struct '"$struct"' [^{]*{/,/^};$/p' < "$input" | - sed -n 's/^[[:space:]]\+[^][;:]*[[:space:]]\([^][[:space:];:]\+\)\(\[[^;:]*\]\)\?;$/\1/p' | + sed -n 's/^[[:space:]]\+[^][;:]*[[:space:]]\([^]}[[:space:];:]\+\)\(\[[^;:]*\]\)\?;$/\1/p' | while read field; do FIELD="$(printf %s "$field" |tr '[:lower:]' '[:upper:]')" cat <<EOF |