Skip to content

Commit

Permalink
Merge pull request #127 from LuHee/master
Browse files Browse the repository at this point in the history
Parse output of old iucode-tool 1.x.
  • Loading branch information
liske authored Oct 28, 2018
2 parents c12ef6f + eed713d commit bb22ba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perl/lib/NeedRestart/uCode/Intel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ sub nr_ucode_check_real {

my $fh = nr_fork_pipe($debug, NRM_INTEL_HELPER, $debug);
while(<$fh>) {
if (/\s+\d+\/\d+: sig.+, rev (0x[\da-f]+),/) {
$vars{AVAIL} = sprintf("0x%x", hex($1));
print STDERR "$LOGPREF available revision: $1\n" if($debug);
if (/\s*\d+(\/\d+)?: sig.+, rev (0x[\da-f]+),/) {
$vars{AVAIL} = sprintf("0x%x", hex($2));
print STDERR "$LOGPREF available revision: $2\n" if($debug);
next;
}
}
Expand Down

0 comments on commit bb22ba2

Please sign in to comment.