Skip to content
Snippets Groups Projects
Commit d3f82839 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf beauty socket: Sort the ipproto array entries


Just tidying up the output for human consumption.

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 82e3664b
No related branches found
No related tags found
No related merge requests found
......@@ -12,5 +12,5 @@ ipproto_regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+)
egrep $ipproto_regex ${uapi_header_dir}/in.h | \
sed -r "s/$ipproto_regex/\2 \1/g" | \
sort | xargs printf "\t[%s] = \"%s\",\n"
sort -n | xargs printf "\t[%s] = \"%s\",\n"
printf "};\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment