Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199504
b: refs/heads/master
c: 0139f1d
h: refs/heads/master
v: v3
  • Loading branch information
Hui Zhu authored and Michal Marek committed Feb 2, 2010
1 parent bbcfd3e commit a7f2110
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94a47083522ec4bcfc03134ebe908f1bfb393057
refs/heads/master: 0139f1d9539395ca341e17060ae26f44f5f31434
7 changes: 4 additions & 3 deletions trunk/scripts/markup_oops.pl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ sub process_x86_regs

my $counter = 0;
my $state = 0;
my $center = 0;
my $center = -1;
my @lines;
my @reglines;

Expand Down Expand Up @@ -236,7 +236,8 @@ sub InRange {
$state = 1;
}
}
} else {
}
if ($state == 1) {
if ($line =~ /^([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+)\:/) {
my $val = $1;
if (!InRange($val, $target)) {
Expand All @@ -259,7 +260,7 @@ sub InRange {
exit;
}

if ($center == 0) {
if ($center == -1) {
print "No matching code found \n";
exit;
}
Expand Down

0 comments on commit a7f2110

Please sign in to comment.