Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[uCode] fix uninitialized value in logging of processor index #273

Merged

Conversation

stbuehler
Copy link
Contributor

This got broken in f8c2609.

Before that it would have effectively logged $processors{$pid}->{processor}, but the processor entry is also the key in %processors, i.e. equals $pid.

This got broken in f8c2609.

Before that it would have effectively logged
`$processors{$pid}->{processor}`, but the `processor` entry
is also the key in `%processors`, i.e. equals `$pid`.
@stbuehler
Copy link
Contributor Author

See #249 for example output of this bug (not the actual problem in #249, but not helping adding further errors to the log):

Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 61.
[ucode] # did not get available microcode version

@liske liske added the bug label Aug 6, 2023
@liske liske merged commit 280c1ae into liske:master Aug 6, 2023
@liske
Copy link
Owner

liske commented Aug 6, 2023

Thanks for catching this!

@stbuehler stbuehler deleted the fix-ucode-uninitialized-value-processor branch November 18, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants