From a7f2110b250be7d0de5031e288400f082928b792 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 28 Jan 2010 06:58:02 +0000 Subject: [PATCH] --- yaml --- r: 199504 b: refs/heads/master c: 0139f1d9539395ca341e17060ae26f44f5f31434 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/markup_oops.pl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 94d826a2bab8..a371e45a1f23 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 94a47083522ec4bcfc03134ebe908f1bfb393057 +refs/heads/master: 0139f1d9539395ca341e17060ae26f44f5f31434 diff --git a/trunk/scripts/markup_oops.pl b/trunk/scripts/markup_oops.pl index ce3e40b01e48..4a95539c807a 100644 --- a/trunk/scripts/markup_oops.pl +++ b/trunk/scripts/markup_oops.pl @@ -204,7 +204,7 @@ sub process_x86_regs my $counter = 0; my $state = 0; -my $center = 0; +my $center = -1; my @lines; my @reglines; @@ -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)) { @@ -259,7 +260,7 @@ sub InRange { exit; } -if ($center == 0) { +if ($center == -1) { print "No matching code found \n"; exit; }