History

scripts/get_abi.pl: fix parse issues with some files

A few files are failing to parse: Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats Documentation/ABI/testing/sysfs-class-pktcdvd Documentation/ABI/testing/sysfs-bus-nfit On all three files, the problem is that there is a ":" character at the initial file description. Improve the parse in order to handle those special cases.

Mauro Carvalho Chehab committed 7 years ago

Commit 7d7ea8d1 parent 45f96511 file · +2 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/get_abi.pl+2−2
@@ -87,7 +87,7 @@ sub parse_abi { · 86 unmodified lines
87 # New "tag" is actually part of87 # New "tag" is actually part of
88 # description. Don't consider it a tag88 # description. Don't consider it a tag
89 $new_tag = "";89 $new_tag = "";
90 } else {90 } elsif ($tag ne "") {
91 parse_error($file, $ln, "tag '$tag' is invalid", $_);91 parse_error($file, $ln, "tag '$tag' is invalid", $_);
92 }92 }
93 }93 }
@@ -110,7 +110,7 @@ sub parse_abi { · 16 unmodified lines
110 next;110 next;
111 }111 }
112 112
113 if ($new_tag) {113 if ($tag ne "" && $new_tag) {
114 $tag = $new_tag;114 $tag = $new_tag;
115 115
116 if ($new_what) {116 if ($new_what) {