Skip to content

Commit

Permalink
Merge pull request #307 from adsr/ucodehint_as_info
Browse files Browse the repository at this point in the history
Support `ucodehints=-1` like `kernelhints=-1`
  • Loading branch information
liske authored Aug 9, 2024
2 parents 94795e5 + e5f81aa commit 976ca09
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion needrestart
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,15 @@ if($opt_w) {
elsif($ucode_result == NRM_OBSOLETE) {
push(@easy_hints, __ 'outdated processor microcode') if($opt_m eq 'e');

if($nrconf{ucodehints}) {
if($nrconf{ucodehints} < 0) {
$ui->vspace();
$ui->notice(__x(
'The currently running processor microcode revision is {crev} which is not the expected microcode revision {erev}.',
crev => $ucode_vars{CURRENT},
erev => $ucode_vars{AVAIL},
));
}
elsif($nrconf{ucodehints}) {
$ui->announce_ucode(%ucode_vars);
}
}
Expand Down

0 comments on commit 976ca09

Please sign in to comment.