diff options
-rw-r--r-- | scripts/markup_oops.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/markup_oops.pl b/scripts/markup_oops.pl index ce3e40b01e48..4a95539c807a 100644 --- a/scripts/markup_oops.pl +++ b/scripts/markup_oops.pl | |||
@@ -204,7 +204,7 @@ if ($module ne "") { | |||
204 | 204 | ||
205 | my $counter = 0; | 205 | my $counter = 0; |
206 | my $state = 0; | 206 | my $state = 0; |
207 | my $center = 0; | 207 | my $center = -1; |
208 | my @lines; | 208 | my @lines; |
209 | my @reglines; | 209 | my @reglines; |
210 | 210 | ||
@@ -236,7 +236,8 @@ while (<FILE>) { | |||
236 | $state = 1; | 236 | $state = 1; |
237 | } | 237 | } |
238 | } | 238 | } |
239 | } else { | 239 | } |
240 | if ($state == 1) { | ||
240 | if ($line =~ /^([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+)\:/) { | 241 | if ($line =~ /^([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+)\:/) { |
241 | my $val = $1; | 242 | my $val = $1; |
242 | if (!InRange($val, $target)) { | 243 | if (!InRange($val, $target)) { |
@@ -259,7 +260,7 @@ if ($counter == 0) { | |||
259 | exit; | 260 | exit; |
260 | } | 261 | } |
261 | 262 | ||
262 | if ($center == 0) { | 263 | if ($center == -1) { |
263 | print "No matching code found \n"; | 264 | print "No matching code found \n"; |
264 | exit; | 265 | exit; |
265 | } | 266 | } |