aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/markup_oops.pl7
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
205my $counter = 0; 205my $counter = 0;
206my $state = 0; 206my $state = 0;
207my $center = 0; 207my $center = -1;
208my @lines; 208my @lines;
209my @reglines; 209my @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
262if ($center == 0) { 263if ($center == -1) {
263 print "No matching code found \n"; 264 print "No matching code found \n";
264 exit; 265 exit;
265} 266}