mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
perf beauty socket: Sort the ipproto array entries
Just tidying up the output for human consumption. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
82e3664b0a
commit
d3f82839f8
1 changed files with 1 additions and 1 deletions
|
@ -12,5 +12,5 @@ ipproto_regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+)
|
||||||
|
|
||||||
egrep $ipproto_regex ${uapi_header_dir}/in.h | \
|
egrep $ipproto_regex ${uapi_header_dir}/in.h | \
|
||||||
sed -r "s/$ipproto_regex/\2 \1/g" | \
|
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"
|
printf "};\n"
|
||||||
|
|
Loading…
Reference in a new issue